Пример #1
0
 private void cmdAdd_Click(object sender, EventArgs e)
 {
     PSReport.frmMasterTargetSalesUpdate ifrmChild = new frmMasterTargetSalesUpdate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
Пример #2
0
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            Guid _row = (Guid)customGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value;

            PSReport.frmMasterTargetSalesUpdate ifrmChild = new frmMasterTargetSalesUpdate(this, _row);
            ifrmChild.MdiParent = Program.MainForm;
            Program.MainForm.RegisterChild(ifrmChild);
            ifrmChild.Show();
        }