private void cmdSave_Click(object sender, RoutedEventArgs e)
 {
     if (SaveChanges())
     {
         db.Dispose();
         this.Close();
     }
 }
 private void cmdCancel_Click(object sender, RoutedEventArgs e)
 {
     if (DoCancel())
     {
         db.Dispose();
         this.Close();
     }
 }
示例#3
0
        public bool RejectChanges()
        {
            if (MessageBox.Show("Bearbeitung wirklich abbrechen ?", "Sicherheitsabfrage", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
            {
                db.Dispose();
                db = null;
                if (_RaiseEvents != null)
                {
                    _RaiseEvents.Publish(new SelectUIEvent(true, SelectUIEvent.EnumActivateModule.Kunde));
                    _RaiseEvents.Publish(new ConfigureUITermineDaten(0, "10"));
                }
                return(true);
            }

            return(false);
        }