protected override void OnInitialActivate() { base.OnInitialActivate(); GameBrowserVm = this.Parent as GameBrowserViewModel; CheatStatusText = GameBrowserVm.UserData.DotaCheatStatus; StatusColor = CheatStatusText == "Updated" ? Brushes.YellowGreen : Brushes.OrangeRed; }
public MainViewModel(ISettingsService settingsService, LoginViewModel loginVm, GameBrowserViewModel gameBrowserVm) { settingsService.SaveValue <string>(SettingsType.ExePath, AssemblyPath); var ver = Assembly.GetExecutingAssembly().GetName().Version; Version = $"{ver.Major}.{ver.Minor}.{ver.Build}"; SettingsService = settingsService; LoginVm = loginVm; GameBrowserVm = gameBrowserVm; NavigateTo(LoginVm); }
protected override void OnInitialActivate() { base.OnInitialActivate(); GameBrowserVm = this.Parent as GameBrowserViewModel; }