示例#1
0
        public MantisService(BackgroundWorkerService backgroundWorkerService)
        {
            if (backgroundWorkerService == null)
                throw new ArgumentNullException("backgroundWorkerService");
            this.backgroundWorkerService = backgroundWorkerService;

            IsLoggedIn = false;
            CurrentUsername = String.Empty;
            MantisSession = null;
            Data = MantisData.LoadFromCache();
        }
示例#2
0
 public App()
 {
     BackgroundWorkerService = new BackgroundWorkerService();
     MantisService = new MantisService(BackgroundWorkerService);
 }