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 (); }
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(); }