Exemplo n.º 1
0
 private void modifyOrderButton_Click(object sender, EventArgs e)
 {
     sessionData.selectedOrder = OrderMapper.FromModelToEntity((OrderModel)ordersListBox.SelectedItem);
     if (sessionData.selectedOrder.StareComanda.Equals(OrderStatusEnum.OrderFinished.ElementAt(0).Value))
     {
         sessionData.Operation_Type = OperationTypes.VIEW_ORDER_DETAILS;
         OrderDetailsPopup orderDetailsPopup = new OrderDetailsPopup(sessionData);
         orderDetailsPopup.Show();
     }
     else
     {
         sessionData.Operation_Type = OperationTypes.MODIFY_ORDER_DETAILS;
         OrderDetailsPopup orderDetailsPopup = new OrderDetailsPopup(sessionData);
         orderDetailsPopup.Show();
     }
 }