Пример #1
0
 void RemoveButtonClick(object sender, EventArgs e)
 {
     DisplayBindingService.RemoveExternalProcessDisplayBinding((ExternalProcessDisplayBinding)SelectedBinding.GetLoadedBinding());
     if (defaultBindingIndex == programListBox.SelectedIndex)
     {
         defaultBindingIndex = -1;
     }
     programListBox.Items.RemoveAt(programListBox.SelectedIndex);
 }