private bool PromptUpdateBestellpositionDialog(bestellposition p) { var dlg = new BestellpositionDialog(p) { Title = "Bestellposition ändern", Width = 500, }; dlg.Buttons = new[] { dlg.OkButton, dlg.CancelButton }; return(dlg.ShowDialog() ?? false); }
private bool PromptNewBestellpositionDialog() { var dlg = new BestellpositionDialog(ViewModel.Auftrag) { Title = "Neue Bestellposition", Width = 500, }; dlg.Buttons = new[] { dlg.OkButton, dlg.CancelButton }; return(dlg.ShowDialog() ?? false); }