示例#1
0
 private void NewOrderBtn_Click(object sender, EventArgs e)
 {
     NewOrderForm f = new NewOrderForm();
     f.StartPosition = FormStartPosition.CenterParent;
     f.ShowDialog(this);
 }
示例#2
0
        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);

            }
        }
示例#3
0
 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);
 }