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; }
private void btnDeleteOrder_ItemClick(object sender, ItemClickEventArgs e) { Order toDelete = (Order)OrdersView.GetFocusedRow(); Session.Delete(toDelete); }