protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var storage = new Services.PersistentStorage(); storage.Initialize(); var focus = new Services.FocusService(storage); if (focus.IsFocus) { var focusBar = new Views.FocusBar(focus.RetrieveCurrentActivity()); focusBar.Show(); } else { var historyWindow = new Views.History(); historyWindow.Show(); } }
public FocusService(PersistentStorage storage) { _storage = storage; }