private void HandleButtonSelected(object sender, ButtonMatrix.ButtonSelectedEventArgs e) { dateSel = (Order.PackedOn)e.obj; DialogResult = DialogResult.OK; Close(); }
private void HandleButtonSelected(object sender, ButtonMatrix.ButtonSelectedEventArgs e) { modeSelected = ((ModeSel)e.obj)._mode; DialogResult = DialogResult.OK; Close(); }
private void HandleButtonSelected(object sender, ButtonMatrix.ButtonSelectedEventArgs e) { selectedOrder = (Order)e.obj; if (selectedOrder == null) { DeselectOrder(); return; } ShowSelectedMaterialDetails(); if (selectedOrder.material.madeToOrd) { ProcessBinSelection(); } else { if (currMode != ThisApp.Mode.Rework || reworkDateSel != null) { // Activate Record button (for rework - must have selected a production date as well) btnRecord.Visible = true; } // Packing a normal carton; set tare based on order components ThisApp.scale.SetTare(selectedOrder.incOrders[0].tareWeight); MessageLogger.Add(String.Format("Material {0} tare set to {1}", selectedOrder.materialNum, selectedOrder.incOrders[0].tareWeight), MessageLogger.MsgLevel.info); } }
private void HandleButtonSelected(object sender, ButtonMatrix.ButtonSelectedEventArgs e) { incOrdSel = (Order.IncOrder)e.obj; DialogResult = DialogResult.OK; Close(); }
private void HandleButtonSelected(object sender, ButtonMatrix.ButtonSelectedEventArgs e) { ThisApp.user = (User)e.obj; SetFieldsVisibility(); }