Esempio n. 1
0
 protected override void OnInitialActivate()
 {
     base.OnInitialActivate();
     GameBrowserVm   = this.Parent as GameBrowserViewModel;
     CheatStatusText = GameBrowserVm.UserData.DotaCheatStatus;
     StatusColor     = CheatStatusText == "Updated" ? Brushes.YellowGreen : Brushes.OrangeRed;
 }
Esempio n. 2
0
        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;
 }