void cManager_ConnectionFailed(object sender, ConnectionFailedEventArgs e) { // Set error message this.ccsb.SetMessage("Error: " + e.FailureReason); // Clear the current organization service this.service = null; }
/// <summary> /// Sends a connection failure message /// </summary> /// <param name="failureReason">Reason of the failure</param> private void SendFailureMessage(string failureReason, object parameter) { if (ConnectionFailed != null) { var args = new ConnectionFailedEventArgs { FailureReason = failureReason, Parameter = parameter }; ConnectionFailed(this, args); } }
/// <summary> /// Sends a connection failure message /// </summary> /// <param name="failureReason">Reason of the failure</param> private void SendFailureMessage(string failureReason) { if (ConnectionFailed != null) { var args = new ConnectionFailedEventArgs { FailureReason = failureReason }; ConnectionFailed(this, args); } }
private void CManager_ConnectionFailed(object sender, ConnectionFailedEventArgs e) { MessageBox.Show(string.Format("Connection Failed: {0}", e.FailureReason)); }