//добавить команду
 private void addCommandToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Command_Edit frm = new Command_Edit();
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         LoadData();
     }
 }
        //добавить команду
        private void addCommandToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Command_Edit frm    = new Command_Edit();
            DialogResult result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                LoadData();
            }
        }
 //редактировать команду
 private void editCommandToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listViewCommands.SelectedItems.Count != 0)
     {
         var          item    = listViewCommands.SelectedItems[0];
         string       command = item.SubItems[0].Text;
         Command_Edit frm     = new Command_Edit(command);
         DialogResult result  = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
     }
 }
 //редактировать команду
 private void editCommandToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listViewCommands.SelectedItems.Count != 0)
     {
         var item = listViewCommands.SelectedItems[0];
         string command = item.SubItems[0].Text;
         Command_Edit frm = new Command_Edit(command);
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
     }
 }