Exemple #1
0
 internal void NewWriteCommand_button_Click()
 {
     try
     {
         WriteCommandList.Add(new SendCommand());
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }
Exemple #2
0
 internal void DeleteWriteCommand_button_Click(int selectedIndex)
 {
     try
     {
         if (selectedIndex != -1 && WriteCommandList.Count > selectedIndex)
         {
             WriteCommandList.RemoveAt(selectedIndex);
         }
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }