public void OnSendErrorLogClicked()
 {
     MailsSystemManager.SendErrorLogInMail(m_mainController.LoggedInTherapist);
     m_mainController.ShowPopup(MessageController.MessageType.Succsess, "Mail will be sent in few minutes.");
     try
     {
         PrintToLog("Error log was sent to therapist mail: Requsted by the therapist: " + m_mainController.LoggedInTherapist.FirstName + " " + m_mainController.LoggedInTherapist.LastName + ", id: "
                    + m_mainController.LoggedInTherapist.Username + ".", MainController.LogType.Information);
     }
     catch (Exception e)
     {
         PrintToLog(e.ToString(), MainController.LogType.Error);
     }
 }
Ejemplo n.º 2
0
 public void OnSendErrorLogClicked()
 {
     MailsSystemManager.SendErrorLogInMail(m_mainController.LoggedInTherapist);
     m_mainController.ShowPopup(MessageController.MessageType.Succsess, "Mail will be sent in few minutes.");
 }