protected virtual void OnButtonAddClicked (object sender, System.EventArgs e)
		{
			NewRegistryDialog dlg = new NewRegistryDialog (null);
			dlg.TransientFor = this;
			if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
				RegistryInfo reg = new RegistryInfo ();
				reg.ApplicationName = dlg.ApplicationName;
				reg.ApplicationPath = dlg.ApplicationPath;
				reg.RegistryPath = dlg.RegistryPath;
				AddinAuthoringService.AddCustomRegistry (reg);
				Fill (null);
			}
			dlg.Destroy ();
		}
Example #2
0
        protected virtual void OnButtonAddClicked(object sender, System.EventArgs e)
        {
            NewRegistryDialog dlg = new NewRegistryDialog(null);

            dlg.TransientFor = this;
            if (dlg.Run() == (int)Gtk.ResponseType.Ok)
            {
                RegistryInfo reg = new RegistryInfo();
                reg.ApplicationName = dlg.ApplicationName;
                reg.ApplicationPath = dlg.ApplicationPath;
                reg.RegistryPath    = dlg.RegistryPath;
                AddinAuthoringService.AddCustomRegistry(reg);
                Fill(null);
            }
            dlg.Destroy();
        }