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