Example #1
0
        private void finalInitialisation()
        {
            Toggl.RegisterMainWindow(this);

            if (!Toggl.StartUI(Program.Version(), this.experimentManager.CurrentExperumentIds))
            {
                MessageBox.Show(null, "Missing callback. See the log file for details");
                this.shutdown(1);
                return;
            }

            this.loadPositions();

            this.GetWindow <AboutWindow>().UpdateReleaseChannel();

            this.errorBar.Hide();
            this.statusBar.Hide();
            this.syncingIndicator.Hide();

            this.runScriptAsync();

            this.SetMiniTimerVisible(Toggl.GetMiniTimerVisible(), true);
        }
Example #2
0
        private void finalInitialisation()
        {
            Toggl.RegisterMainWindow(this);

            if (!Toggl.StartUI(Program.Version()))
            {
                MessageBox.Show(null, "Missing callback. See the log file for details");
                this.shutdown(1);
                return;
            }

            this.loadPositions();

            var updateChannelFromLocalDb = Toggl.UpdateChannel();

            Toggl.UpdateService.UpdateChannel.OnNext(updateChannelFromLocalDb);

            this.errorBar.Hide();
            this.statusBar.Hide();
            this.syncingIndicator.Hide();

            this.SetMiniTimerVisible(Toggl.GetMiniTimerVisible(), true);
        }