private void Wiegung_Abschluss(ref ctrlPalette SelControl) { this.ShowStatus("Palette wird abgeschlossen!"); DialogResult mB = cGlobalHandling.MessageBoxYesNoSicher("Sind Sie sicher?", "Abschluss"); if (mB == DialogResult.Yes) { if (this.StarteDrucken(ref SelControl)) { SelControl.objBeladungsDaten.dWiegung_Gesamtgewicht = 0; SelControl.objBeladungsDaten.iWiegung_Gesamtanzahl = 0; SelControl.objBeladungsDaten.dWiegung_LastNetto = 0; cWiegung_Handling.Save_Palette(SelControl); } } SelControl.UpdateCtrl(); SelControl.ResetButton(); }
private void Wiegung_Storno(ref ctrlPalette SelControl) { this.ShowStatus("Wiegung wird storniert!"); if (SelControl.objBeladungsDaten.dWiegung_LastNetto > 0) { DialogResult mB = cGlobalHandling.MessageBoxYesNoSicher("Sind Sie sicher?", "Storno"); if (mB == DialogResult.Yes) { SelControl.objBeladungsDaten.iWiegung_Gesamtanzahl--; SelControl.objBeladungsDaten.dWiegung_Gesamtgewicht -= SelControl.objBeladungsDaten.dWiegung_LastNetto; SelControl.objBeladungsDaten.dWiegung_LastNetto = 0; } } SelControl.UpdateCtrl(); SelControl.ResetButton(); this.ShowStatus("Bereit..."); }