Пример #1
0
        private void ReStartSteamByUser(SteamUser user)
        {
            DisableMostRecentSteamUser();

            steamService.SetCurrentUser(user.AccountName ?? string.Empty);
            user.MostRecent = true;
            steamService.UpdateLocalUserData(user);
            user.OriginVdfString = user.CurrentVdfString;
            steamService.TryKillSteamProcess();
            steamService.StartSteam(SteamSettings.SteamStratParameter.Value);
            RefreshRememberUserList();
        }
        public async void SetActivity_Click()
        {
            if (_AuthorizedList != null)
            {
                steamService.UpdateAuthorizedDeviceList(_AuthorizedList);
            }
            var result = await MessageBox.ShowAsync(AppResources.AccountChange_RestartSteam, button : MessageBox.Button.OKCancel);

            if (result.IsOK())
            {
                steamService.TryKillSteamProcess();
                steamService.StartSteam();
            }
        }