Пример #1
0
 //method for delete button in Application Tab
 private void appDelBtn_Click(object sender, EventArgs e)
 {
     //if it's not add new...
     if (appListBox.SelectedIndex != 0)
     {
         applications.DeleteApp(appNameTextBox.Text);
         MessageBox.Show("Deleted Application");
         LoadAppListBox();
     }
     //then run delete app procedure
     else
     {
         MessageBox.Show("Please Select an Application to Delete!");
     }
     //side note: i should probably log this....
 }