Exemple #1
0
 private void OrderList_listbox_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (OrderList_listbox.SelectedIndex >= 0)
         {
             Order = (StockOrderRequest)OrderList_listbox.SelectedItem;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Warning");
     }
 }
 public void newOrder(int initQuantity, string initDescription, string initStatus, string materialType)
 {
     StockOrder = new StockOrderRequest(0, initQuantity, initDescription, initStatus, materialType);
     StockOrderRequests.Add(StockOrder);
 }