private void BtChange_Click(object sender, EventArgs e)
 {
     if (DG_TypesOfOccupations.SelectedRows.Count == 1)
     {
         DataRow               Row = ((DataRowView)DG_TypesOfOccupations.SelectedRows[0].DataBoundItem).Row;
         MTypesOfOccupations   mTypesOfOccupations = new MTypesOfOccupations((string)Row["Fullname"], (string)Row["Shortname"]);
         AddTypesOfOccupations add = new AddTypesOfOccupations(mTypesOfOccupations)
         {
             Owner = this
         };
         add.ShowDialog();
     }
     else
     {
         MessageBox.Show("Для изменения выделите только одну строку!");
     }
 }
        private void BtAdd_Click(object sender, EventArgs e)
        {
            AddTypesOfOccupations addTypesOfOccupations = new AddTypesOfOccupations();

            addTypesOfOccupations.ShowDialog();
        }