Пример #1
0
        private void newUniversityToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f = new frmEtblissement();

            //f.MdiParent = this;
            f.Show();
            //f.WindowState = FormWindowState.Maximized;
        }
Пример #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
         {
             Form f = new frmEtblissement
                      (
                 dataGridView1.SelectedRows[i].DataBoundItem as Etablissement,
                 loadData
                      );
             this.Close();
             f.Show();
             f.WindowState = FormWindowState.Maximized;
         }
     }
 }