示例#1
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;
        }
示例#2
0
        private void btnDeleteOrder_ItemClick(object sender, ItemClickEventArgs e)
        {
            Order toDelete = (Order)OrdersView.GetFocusedRow();

            Session.Delete(toDelete);
        }