Exemple #1
0
        private void btnAddOrder_ItemClick(object sender, ItemClickEventArgs e)
        {
            EditOrderNestedForm form = new EditOrderNestedForm(Session);

            form.MdiParent   = this.MdiParent;
            form.WindowState = FormWindowState.Maximized;
            form.Show();
            form.FormClosing += EditForm_FormClosing;
        }
Exemple #2
0
        private void EditOrder()
        {
            EditOrderNestedForm form = new EditOrderNestedForm(Session);

            form.MdiParent   = this.MdiParent;
            form.WindowState = FormWindowState.Maximized;
            form.Order       = (Order)OrdersView.GetFocusedRow();
            form.Show();
            form.FormClosing += EditForm_FormClosing;
        }