Esempio n. 1
0
 private void btnChange_Click(object sender, EventArgs e)
 {
     if (DG_Institute.SelectedRows.Count == 1)
     {
         DataRow      Row        = ((DataRowView)DG_Institute.SelectedRows[0].DataBoundItem).Row;
         MInstitute   mInstitute = new MInstitute((string)Row["FullName"], (string)Row["ShortName"], (string)Row["Director"], (string)Row["University"]);
         AddInstitute add        = new AddInstitute(mInstitute);
         add.Owner = this;
         add.ShowDialog();
     }
     else
     {
         MessageBox.Show("Для изменения выделите только одну строку!");
     }
 }
Esempio n. 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddInstitute addInstitute = new AddInstitute();

            addInstitute.Show();
        }