private void AddInstallButton_Click(object sender, EventArgs e) { InstallationForm newInstallation = new InstallationForm(""); //<------------------ if (newInstallation.ShowDialog() == System.Windows.Forms.DialogResult.OK) { BlueVex2.Properties.Settings.Default.Installations.Add(newInstallation.KeyName + "," + newInstallation.Account + "," + newInstallation.Path); PopulateInstallationsListView(); } }
private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e) { try { InstallationForm frm = InstallationFormFactory.GetFormOnViewLicenceOrUpdateIfIsTrial(InstallationManager.Instance.Licence.HardwareId); frm.ShowDialog(); frm.Dispose(); MemoryHelper.ReduceMemory(); } catch (Exception ex) { ErrorHandler.Show(ex); } }
private void EditInstallButton_Click(object sender, EventArgs e) { if (this.InstallationsListView.SelectedItems.Count > 0) { string itemString = this.InstallationsListView.SelectedItems[0].Text + "," + this.InstallationsListView.SelectedItems[0].SubItems[1].Text + "," + this.InstallationsListView.SelectedItems[0].SubItems[2].Text; InstallationForm newInstallation = new InstallationForm(itemString); if (newInstallation.ShowDialog() == System.Windows.Forms.DialogResult.OK) { BlueVex2.Properties.Settings.Default.Installations.Remove(itemString); BlueVex2.Properties.Settings.Default.Installations.Add(newInstallation.KeyName + "," + newInstallation.Account + "," + newInstallation.Path); PopulateInstallationsListView(); } } }
public void configure() { if (project.IsDefinedNamespace) { config.defnamespaces.Insert(0, project.getPropertyValue("RootNamespace")); var form = new InstallationForm(config, project); form.ShowDialog(); project.defineNamespace(config.unamespace); } cfgNamespace(); cfgPlatform(); cfgCompiler(); }