Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
         }
     }
 }