private void Initialize() { PopupModel = new SettingsPopupViewModelBase(); PopupModel.InitializeCommands(); SendLogsCommand = new RelayCommand(SendLogs); RebuildStatsCommand = new RelayCommand(RebuildStats, x => CanRunStatsCommand()); RecoverStatsCommand = new RelayCommand(RecoverStats, x => CanRunStatsCommand()); VacuumDatabaseCommand = new RelayCommand(VacuumDatabase, x => CanRunStatsCommand()); SettingsSendLogViewModel.OnClose += PopupModel.ClosePopup; TimeZones = TimeZoneInfo.GetSystemTimeZones(); MinOffset = TimeZones?.Min(x => x.BaseUtcOffset).Hours ?? -12; MaxOffset = TimeZones?.Max(x => x.BaseUtcOffset).Hours ?? 12; }