private void lbMilitaryUnit_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            MilitaryUnit m = addMilitaryUnit.getEditedMilitaryUnit(lbMilitaryUnit.SelectedItem as MilitaryUnit);

            if (m != null)
            {
                if (sqlWorker.updateMilitaryUnit(m))
                {
                    mList.update(m);
                    lbMilitaryUnit.Items.Refresh();
                }
                else
                {
                    MessageBox.Show("Ошибка при изменении элемента");
                }
            }
        }