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"]);
         AddTypesOfOccupation add = new AddTypesOfOccupation(mTypesOfOccupations)
         {
             Owner = this
         };
         add.ShowDialog();
     }
     else
     {
         MessageBox.Show("Для изменения выделите только одну строку!");
     }
 }
        private void BtAdd_Click(object sender, EventArgs e)
        {
            AddTypesOfOccupation addTypesOfOccupations = new AddTypesOfOccupation();

            addTypesOfOccupations.ShowDialog();
        }