public MantisService(BackgroundWorkerService backgroundWorkerService) { if (backgroundWorkerService == null) throw new ArgumentNullException("backgroundWorkerService"); this.backgroundWorkerService = backgroundWorkerService; IsLoggedIn = false; CurrentUsername = String.Empty; MantisSession = null; Data = MantisData.LoadFromCache(); }
public App() { BackgroundWorkerService = new BackgroundWorkerService(); MantisService = new MantisService(BackgroundWorkerService); }