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; }
private void initializeWindows() { var aboutWindowViewModel = new AboutWindowViewModel( updateService: Toggl.UpdateService, 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.ViewModel.WhenValueChanged(x => x.DurationText).Subscribe(x => updateTaskbarTooltip(this, x)); this.timerEntryListView.Timer.StartStopButtonClicked += () => 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; }
private void initializeWindows() { this.childWindows = new Window[] { this.editPopup = new EditViewPopup(), new AboutWindow(), 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; }
private void initializeWindows() { this.childWindows = new Window[]{ this.editPopup = new EditViewPopup(), this.aboutWindow = new AboutWindow(), this.feedbackWindow = 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.IsVisibleChanged += this.ownChildWindows; }