예제 #1
0
        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();
            }
        }
예제 #2
0
 public FocusService(PersistentStorage storage)
 {
     _storage = storage;
 }