コード例 #1
0
 internal void NewReadCommand_button_Click()
 {
     try
     {
         ReadCommandList.Add(new SendCommand());
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }
コード例 #2
0
 internal void DeleteReadCommand_button_Click(int selectedIndex)
 {
     try
     {
         if (selectedIndex != -1 && ReadCommandList.Count > selectedIndex)
         {
             ReadCommandList.RemoveAt(selectedIndex);
         }
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }