示例#1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dataGridView1.Columns["edit_column"].Index)
     {
         string            intID  = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
         PharmaceuticalCom myform = new PharmaceuticalCom(intID);
         myform.MdiParent   = this.ParentForm;
         myform.WindowState = FormWindowState.Maximized;
         myform.Show();
         this.Close();
     }
 }
示例#2
0
        private void companyToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }
            PharmaceuticalCom newMDIChild = new PharmaceuticalCom(string.Empty);

            newMDIChild.MdiParent   = this;
            newMDIChild.MaximizeBox = false;
            newMDIChild.Show();
            newMDIChild.WindowState = FormWindowState.Maximized;
        }