예제 #1
0
        /// <summary>
        /// When BattleClinic API credentials get checked, informs the user.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EVEMon.Common.BCAPIEventArgs"/> instance containing the event data.</param>
        private void EveClient_BCAPICredentialsUpdated(object sender, BCAPIEventArgs e)
        {
            throbber.State   = ThrobberState.Stopped;
            throbber.Visible = false;

            if (e.HasError)
            {
                apiResponseLabel.ForeColor = Color.Red;
                apiResponseLabel.Text      = e.ErrorMessage;
                return;
            }

            apiResponseLabel.ForeColor = Color.Green;
            apiResponseLabel.Text      = "Authenticated.";
        }
 /// <summary>
 /// Occurs when the BattleClinic API credentials get authenticated.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EVEMon.Common.BCAPIEventArgs"/> instance containing the event data.</param>
 private void EveClient_BCAPICredentialsUpdated(object sender, BCAPIEventArgs e)
 {
     Enabled = BCAPI.IsAuthenticated;
 }