Exemplo n.º 1
0
        private void OkClick(object sender, EventArgs e)
        {
            _settings.PollInterval = _pollInterval.Value;
            UpdateLocation updateLocation = GetUpdateLocation();

            _settings.UpdateLocationOther = null;
            _settings.UpdateLocationOther = _updateLocationOtherLocation.Text;
            _settings.UpdateLocation      = updateLocation;

            SetShowAchievements();
            _settings.SaveUserIAm(_userIAm);
            SetMiscSection();

            _settings.Save();
            Close();
        }
Exemplo n.º 2
0
        private void VerifyCredentialsClick(object sender, EventArgs e)
        {
            _settings.SaveUserIAm(_userIAm);
            SaveSosOnlineSettings();
            if (string.IsNullOrEmpty(_settings.MyRawName))
            {
                SosMessageBox.Show("Who Am I?", "Please select which user you are from the 'I Am' textbox so we know which records to export", "Fine");
                return;
            }

            var sosOnlineService = new SosOnlineService();

            SaveSosOnlineSettings();
            _loading.Visible = true;
            sosOnlineService.VerifyCredentialsAsync(_settings, OnVerifyCredentialsSuccess, OnSosOnlineFailure);
            _sosOnlineStatus.Text = "Logging in ...";
        }
Exemplo n.º 3
0
 private void UserIAmSelectedIndexChanged(object sender, EventArgs e)
 {
     _settings.SaveUserIAm(_userIAm);
     RefreshOfflinePanel();
 }