private void DeleteSIPAccountCompleted(object sender, DeleteSIPAccountCompletedEventArgs e) { if (IsUnauthorised(e.Error)) { SessionExpired(); } else if (DeleteSIPAccountComplete != null) { DeleteSIPAccountComplete(e); } }
private void DeleteSIPAccountComplete(DeleteSIPAccountCompletedEventArgs e) { try { SIPAccount sipAccount = e.Result; LogActivityMessage_External(MessageLevelsEnum.Info, "Delete completed successfully for " + sipAccount.SIPUsername + "@" + sipAccount.SIPDomain + "."); for (int index = 0; index < m_sipAccounts.Count; index++) { if (m_sipAccounts[index].Id == sipAccount.Id) { m_sipAccounts.RemoveAt(index); break; } } m_sipAccountsPanel.AssetDeleted(); } catch (Exception excp) { string excpMessage = (excp.InnerException != null) ? excp.InnerException.Message : excp.Message; LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error deleting the SIP Account. " + excpMessage); } }
private void DeleteSIPAccountCompleted(object sender, DeleteSIPAccountCompletedEventArgs e) { if (IsUnauthorised(e.Error)) { SessionExpired(); } else if (DeleteSIPAccountComplete != null) { DeleteSIPAccountComplete(e); } }