Exemplo n.º 1
0
        private void newServiceOrderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmDEntry_SO frm = new FrmDEntry_SO();

            frm.MdiParent = this;
            frm.Show();
        }
Exemplo n.º 2
0
 private void dgvOrders_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvOrders.Rows[e.RowIndex].DefaultCellStyle.BackColor != Color.WhiteSmoke)
     {
         FrmDEntry_SO frm = new FrmDEntry_SO();
         frm.MdiParent  = this.ParentForm;
         frm.IsEditMode = true;
         frm.Show();
         try
         {
             TextBox myControl1 = (TextBox)this.ParentForm.ActiveMdiChild.Controls.Find("txtPONumber", true)[0];
             myControl1.Text = dgvOrders.Rows[e.RowIndex].Cells[1].Value.ToString();
         }
         catch { }
     }
 }