Example #1
0
        private void cmdADD_Click(object sender, EventArgs e)
        {
            frmMotorUpdate ifrmChild = new frmMotorUpdate(this);

            //ifrmChild.MdiParent = Program.MainForm;
            //Program.MainForm.RegisterChild(ifrmChild);
            ifrmChild.ShowDialog();
        }
Example #2
0
        private void cmdEDIT_Click(object sender, EventArgs e)
        {
            if (!FormTools.IsRowSelected(dgMain))
            {
                return;
            }

            Guid rowID;

            rowID = (Guid)dgMain.SelectedCells[0].OwningRow.Cells["RowID"].Value;
            frmMotorUpdate ifrmChild = new frmMotorUpdate(this, rowID);

            //ifrmChild.MdiParent = Program.MainForm;
            //Program.MainForm.RegisterChild(ifrmChild);
            ifrmChild.ShowDialog();
        }