void ipClient_ProfileRegistered(object sender, WOSI.NET.inTELIPhone.SIPProfileEventArgs e) { if (testing) { testing = false; pnlResults.Visible = false; MessageBox.Show(this, Properties.LocalizedStrings.ProviderEditorForm_TestSuccess, Properties.LocalizedStrings.ProviderEditorForm_TestSuccessTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); // Unregister the profile ipClient.UnregisterProfile(e.SIPProfile); } }
void ipClient_ProfileRegistrationError(object sender, WOSI.NET.inTELIPhone.SIPProfileEventArgs e) { if (testing) { testing = false; pnlResults.Visible = false; MessageBox.Show(this, string.Format(Properties.LocalizedStrings.ProviderEditorForm_TestFailure, e.ResponseCode + " " + e.ResponsePhrase), Properties.LocalizedStrings.ProviderEditorForm_TestFailureTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); // Unregister the profile ipClient.UnregisterProfile(e.SIPProfile); } }