WriteStatusMessage() 공개 메소드

public WriteStatusMessage ( MessageLevelsEnum status, string message ) : void
status MessageLevelsEnum
message string
리턴 void
예제 #1
0
        private void SIPAccountAddComplete(SubmitOperation so)
        {
            if (so.HasError)
            {
                if (m_addControl != null)
                {
                    m_addControl.WriteStatusMessage(MessageLevelsEnum.Error, so.Error.Message);
                }
                else
                {
                    LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error adding a SIP Account. " + so.Error.Message);
                }

                m_riaContext.SIPAccounts.Remove((SIPAccount)so.UserState);
                so.MarkErrorAsHandled();
            }
            else
            {
                if (m_addControl != null)
                {
                    SIPAccount sipAccount = (SIPAccount)so.UserState;
                    SIPAccountsAssetViewer_Add();
                    m_addControl.WriteStatusMessage(MessageLevelsEnum.Info, "SIP Account was successfully created for " + sipAccount.SIPUsername + "@" + sipAccount.SIPDomain + ".");
                }

                m_sipAccountsPanel.AssetAdded();
            }
        }
예제 #2
0
 private void UpdateSIPAccountComplete(SubmitOperation so)
 {
     if (so.HasError)
     {
         LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error updating the SIP account. " + so.Error.Message);
         so.MarkErrorAsHandled();
     }
     else
     {
         if (m_editControl != null)
         {
             SIPAccount sipAccount = (SIPAccount)so.UserState;
             m_editControl.WriteStatusMessage(MessageLevelsEnum.Info, "Update completed successfully for " + sipAccount.SIPUsername + "@" + sipAccount.SIPDomain + ".");
         }
     }
 }