protected void OnButtonAddClicked(object sender, System.EventArgs e)
        {
            SelectRepositoryDialog dlg = new SelectRepositoryDialog(null);

            dlg.TransientFor = this.Toplevel as Gtk.Window;
            if (dlg.Run() == (int)Gtk.ResponseType.Ok)
            {
                RegistryInfo reg = dlg.SelectedApplication;
                tree.AddChild(reg);
            }
            dlg.Destroy();
        }
		protected virtual void OnButtonBrowseClicked (object sender, System.EventArgs e)
		{
			SelectRepositoryDialog dlg = new SelectRepositoryDialog (appName);
			dlg.TransientFor = this.Toplevel as Gtk.Window;
			if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
				appName = dlg.SelectedApplication;
				UpdateLabel ();
				if (Changed != null)
					Changed (this, EventArgs.Empty);
			}
			dlg.Destroy ();
		}
Exemplo n.º 3
0
        protected virtual void OnButtonBrowseClicked(object sender, System.EventArgs e)
        {
            SelectRepositoryDialog dlg = new SelectRepositoryDialog(appName);

            dlg.TransientFor = this.Toplevel as Gtk.Window;
            if (dlg.Run() == (int)Gtk.ResponseType.Ok)
            {
                appName = dlg.SelectedApplication;
                UpdateLabel();
                if (Changed != null)
                {
                    Changed(this, EventArgs.Empty);
                }
            }
            dlg.Destroy();
        }
		protected void OnButtonAddClicked (object sender, System.EventArgs e)
		{
			SelectRepositoryDialog dlg = new SelectRepositoryDialog (null);
			dlg.TransientFor = this.Toplevel as Gtk.Window;
			if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
				RegistryInfo reg = dlg.SelectedApplication;
				tree.AddChild (reg);
			}
			dlg.Destroy ();
		}