Ejemplo n.º 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            specificationWork specWork = new specificationWork(maskedTbNumber.Text.Replace(',', '.'));

            specWork.MdiParent = this.Owner;
            specWork.Show();
        }
Ejemplo n.º 2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex == -1)
         {
         }
         else
         {
             foreach (Form o in this.MdiParent.MdiChildren)
             {
                 if (o.Text == dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString())
                 {
                     o.Activate();
                     return;
                 }
             }
             specificationWork specWork = new specificationWork(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
             specWork.MdiParent   = this.ParentForm;
             specWork.WindowState = FormWindowState.Maximized;
             specWork.Show();
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.ToString());
     }
 }