Exemplo n.º 1
0
        private void GridItemOrders_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                ItemOrderId = decimal.Parse(gridItemOrders.SelectedRows[0].Cells["OrderId"].Value.ToString());

                OrderSelected?.Invoke(this, EventArgs.Empty);
            }
        }
Exemplo n.º 2
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            Order order = null;

            if (e.Node.Tag is Order selectedOrder)
            {
                order = selectedOrder;
            }
            else if (e.Node.Tag is OrderDetail)
            {
                if (e.Node.Parent.Tag is Order parentOrder)
                {
                    order = parentOrder;
                }
            }

            if (order != null)
            {
                OrderSelected?.Invoke(this, new OrderEventArgs(order));
            }
        }
Exemplo n.º 3
0
 private void OrderSelectForm_RetailOrderSelected(RetailOrder retailOrder)
 {
     this.SkinTxt.Text = retailOrder.ID;
     OrderSelected?.Invoke(retailOrder);
 }
 public void OnEvent(OrderSelected e) => e.Order.Messages.Add("OrderSelected");