blob: 921eab2bb2112f85c95c38a0141009afae98709e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
using MonoDevelop.Projects;
namespace MonoDevelop.Deployment.Gui
{
internal partial class InstallDialog : Gtk.Dialog
{
public InstallDialog (SolutionItem entry)
{
this.Build();
nameEntry.Text = entry.Name;
UpdateControls ();
}
void UpdateControls ()
{
buttonOk.Sensitive = folderEntry.Path.Length > 0 && nameEntry.Text.Length > 0;
}
protected virtual void OnFolderEntryPathChanged(object sender, System.EventArgs e)
{
UpdateControls ();
}
protected virtual void OnNameEntryChanged(object sender, System.EventArgs e)
{
UpdateControls ();
}
public string Prefix {
get { return folderEntry.Path; }
}
public string AppName {
get { return nameEntry.Text; }
}
}
}
|