public SI_MailingSelectionViewModel() { db = new SteinbachEntities(); ListboxSelectedEventsVM = new ListboxSelectedEventsViewModel(null, db); ListboxSelectedKategorienVM = new ListboxSelectedKategorienViewModel(db); ListboxSelectedTypFirmaEigenschaftenVM = new ListboxSelectedTypFirmaEigenschaftenViewModel(db); tiTimer = new DispatcherTimer(); tiTimer.Tick += tiTimer_Tick; tiTimer.Interval = new TimeSpan(0, 0, 0, 0, 500); tiTimer.Start(); selectionType = SelectionType.None; SelectedAction = "Keine Aktion gewählt"; AttachedFiles = new ObservableCollection <string>(); SetisExecutEnabled(); int mailMethod = CommonTools.Tools.ConfigEntry <int> .GetConfigEntry("MailMethod", "1", "1 = Exchangeserver, 0=Outlook Client"); rbExchange = mailMethod == 1 ? true : false; rbOutlook = !rbExchange; db.ExecuteStoreCommand("delete from SI_SelectedEvents"); db.ExecuteStoreCommand("delete from SI_SelectedKategorien"); db.ExecuteStoreCommand("delete from SI_SelectedTypFirmaEigenschaften"); }