private void NewOrderBtn_Click(object sender, EventArgs e) { NewOrderForm f = new NewOrderForm(); f.StartPosition = FormStartPosition.CenterParent; f.ShowDialog(this); }
private void clickEvent_Click(object sender, EventArgs e) { SourceGrid.CellContext context = (SourceGrid.CellContext)sender; int id = (int)OrderGrid.Rows[context.Position.Row].Tag; Order o = finOrderManager.GetOrderById(id); if (this.IsFinOrderView) { OrderFinDetailForm f = new OrderFinDetailForm(); f.OrderNo = o.OrderNo; f.ShowDialog(this); } else { NewOrderForm f = new NewOrderForm(); f.UpdateOrder = finOrderManager.GetOrderById(id); f.ShowDialog(this); } }
private void dbClickEvent_Click(object sender, EventArgs e) { SourceGrid.CellContext context = (SourceGrid.CellContext)sender; int id = (int)OrderGrid.Rows[context.Position.Row].Tag; Order o = finOrderManager.GetOrderById(id); NewOrderForm f = new NewOrderForm(); f.UpdateOrder = finOrderManager.GetOrderById(id); f.ShowDialog(this); }