public BackgroundServices(GitListDataContext gitListDataContext) { backgroundServices = new List<IBackgroundService>() { new RefreshRepositoryService(gitListDataContext), new RefreshUIService(gitListDataContext), new NotificationAlertService(gitListDataContext) }; }
private void Startup() { using (new Splash(this)) { new ProcessHandler().Check(); //new AutoStart().Register(); gitListDataContext = new GitListDataContext(); gitListDataContext.NotifyIconHandler = new NotifyIconHandler(Properties.Resources.Icon, Properties.Resources.Icon_Working); gitListDataContext.NotifyIconHandler.OnClickEvent += () => { WindowState = System.Windows.WindowState.Maximized; Topmost = true; Show(); Topmost = false; }; (gitListDataContext.Controllers = (Controllers = new ControllerInitialiser(gitListDataContext))) .InitialiseControllers(); (Services = new BackgroundServices(gitListDataContext)).Start(); this.DataContext = gitListDataContext; } }
public AControllers(GitListDataContext gitListDataContext) { GitListDataContext = gitListDataContext; Initialise(); Start(); }
public ConfigurationController(GitListDataContext gitListDataContext) : base(gitListDataContext) { }
public ConsoleController(GitListDataContext gitListDataContext) : base(gitListDataContext) { }
public RepositoryController(GitListDataContext gitListDataContext) : base(gitListDataContext) { }
public ControllerInitialiser(GitListDataContext gitListDataContext) { GitListDataContext = gitListDataContext; }
public RefreshUIService(GitListDataContext GitListDataContext) : base(GitListDataContext) { GitListDataContext.RootDirectoryItems = GitListDataContext.RootDirectoryItems ?? new ObservableCollection<RootDirectoryItem>(); }
public ABackgroundService(GitListDataContext gitListDataContext) { GitListDataContext = gitListDataContext; }