示例#1
0
        private void ResetClick(object sender, EventArgs e)
        {
            var result = SosMessageBox.Show("Are you sure you want to delete all your rules?", "The obligatory 'are you sure?' dialog", "Yes, Delete Them All!", DialogResult.Yes, "Dude, terrible idea", DialogResult.No);

            if (result != DialogResult.Yes)
            {
                return;
            }
            _settings.ResetRules();
            _settings.InitializeRulesForConnectedSiren();
            DataBind();
        }
示例#2
0
        private void VerifyCredentialsClick(object sender, EventArgs e)
        {
            SaveUserIAm();
            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 ...";
        }
示例#3
0
 private void AddClick(object sender, EventArgs e)
 {
     DialogResult = DialogResult.OK;
     if (_ciEntryPointSetting.BuildDefinitionSettings.Count < 1)
     {
         SosMessageBox.Show(
             "Select More Stuff",
             "Please select at least one build definition",
             "Sorry, I'm a Manager, This Stuff Is Complicated");
         return;
     }
     if (_adding)
     {
         Settings.CiEntryPointSettings.Add(_ciEntryPointSetting);
     }
     Settings.Save();
     Close();
     Dispose();
 }
示例#4
0
 private static void InvalidHighWaterMark()
 {
     SosMessageBox.Show("Invalid Highwater Mark", "The highwater mark should be an 18 digit number that was returned as part of the xml results when you hit submit.", "Now I get it");
 }
示例#5
0
 private void OnSosOnlineFailure(string userFriendlyErrorMessage, ServerUnavailableException ex)
 {
     _loading.Visible = false;
     SosMessageBox.Show("Error connecting", userFriendlyErrorMessage, "Hmmmm");
     _sosOnlineStatus.Text = userFriendlyErrorMessage;
 }