Exemplo n.º 1
0
        private void btnNew_ItemClick(object sender, ItemClickEventArgs e)
        {
            EditCustomerForm form = new EditCustomerForm();

            form.MdiParent   = this.MdiParent;
            form.WindowState = FormWindowState.Maximized;
            form.Show();
            form.FormClosing += EditForm_FormClosing;
        }
Exemplo n.º 2
0
        private void EditCustomer()
        {
            EditCustomerForm form = new EditCustomerForm();

            form.CustomerId  = (int)CustomersView.GetFocusedRowCellValue("Oid");
            form.WindowState = FormWindowState.Maximized;
            form.MdiParent   = this.MdiParent;
            form.Show();
            form.FormClosing += EditForm_FormClosing;
        }