Example #1
0
        private void initializeWindows()
        {
            var aboutWindowViewModel = new AboutWindowViewModel(
                updateService: new UpdateService(Toggl.IsUpdateCheckDisabled(), Toggl.UpdatesPath),
                versionText: $"Version {Program.Version()} {Utils.Bitness()}");

            this.childWindows = new Window[] {
                this.editPopup = new EditViewPopup(),
                new AboutWindow(aboutWindowViewModel),
                new FeedbackWindow(),
                new PreferencesWindow(),
            };
            this.idleNotificationWindow = new IdleNotificationWindow();

            this.editPopup.EditView.SetTimer(this.timerEntryListView.Timer);
            this.timerEntryListView.Timer.RunningTimeEntrySecondPulse += this.updateTaskbarTooltip;
            this.timerEntryListView.Timer.StartStopClick += (sender, args) => this.closeEditPopup(true);
            this.timerEntryListView.Entries.SetEditPopup(this.editPopup);
            this.timerEntryListView.Entries.CloseEditPopup += (sender, args) => this.closeEditPopup(true);

            this.editPopup.IsVisibleChanged += this.editPopupVisibleChanged;
            this.editPopup.SizeChanged      += (sender, args) => this.updateEntriesListWidth();

            this.idleNotificationWindow.AddedIdleTimeAsNewEntry += (o, e) => this.ShowOnTop();

            this.miniTimer = new MiniTimerWindow(this);

            this.IsVisibleChanged += this.ownChildWindows;
        }
        public AboutWindowController()
        {
            InitializeComponent();

            labelVersion.Text = TogglDesktop.Program.Version();

            bool updateCheckDisabled = Toggl.IsUpdateCheckDisabled();

            comboBoxChannel.Visible     = !updateCheckDisabled;
            labelReleaseChannel.Visible = !updateCheckDisabled;
        }
Example #3
0
        public AboutWindow()
        {
            this.InitializeComponent();

            this.updateText.Text          = "";
            this.restartButton.Visibility = Visibility.Collapsed;

            this.versionText.Text = Program.Version();

            var isUpdatCheckDisabled = Toggl.IsUpdateCheckDisabled();

            this.releaseChannelComboBox.ShowOnlyIf(!isUpdatCheckDisabled, true);
            this.releaseChannelLabel.ShowOnlyIf(!isUpdatCheckDisabled, true);

            Toggl.OnDisplayUpdateDownloadState += this.onDisplayUpdateDownloadState;
        }
        public AboutWindow()
        {
            this.InitializeComponent();
            this.Closing += this.HideWindowOnClosing;

            this.updateText.Text          = "";
            this.restartButton.Visibility = Visibility.Collapsed;

            this.versionText.Text = Program.Version() + (Environment.Is64BitProcess ? " (64-bit)" : " (32-bit)");

            var isUpdatCheckDisabled = Toggl.IsUpdateCheckDisabled();

            this.releaseChannelComboBox.ShowOnlyIf(!isUpdatCheckDisabled, true);
            this.releaseChannelLabel.ShowOnlyIf(!isUpdatCheckDisabled, true);

            Toggl.OnDisplayUpdateDownloadState += this.onDisplayUpdateDownloadState;
        }
Example #5
0
 static Toggl()
 {
     UpdateService = new UpdateService(Toggl.IsUpdateCheckDisabled(), Toggl.UpdatesPath);
 }