예제 #1
0
파일: WindowMessage.cs 프로젝트: Chtau/AWC
        private void WriteOutput(string strText, Enums.WindowLogFlags e)
        {
            try
            {
                string strInfoText = strText + Environment.NewLine;
                WindowDataTextChanged(this, new LogEventArgs(strText, e));

                /*switch (e)
                 * {
                 *  case Enums.WindowLogFlags.ERRORLOG:
                 *      myWindowErrorText += strInfoText;
                 *      break;
                 *  default:
                 *      //Infolog
                 *      myWindowInfoText += strInfoText;
                 *      break;
                 * }*/
            }
            catch (Exception)
            {
            }
        }
예제 #2
0
        private void WriteOutput(string strText, Enums.WindowLogFlags e)
        {
            try
            {
                string strInfoText = strText + Environment.NewLine;
                if (WindowDataTextChanged != null)
                {
                    WindowDataTextChanged(this, new LogEventArgs(strText, e));
                }
                switch (e)
                {
                case Enums.WindowLogFlags.ERRORLOG:
                    myWindowErrorText += strInfoText;
                    break;

                default:
                    //Infolog
                    myWindowInfoText += strInfoText;
                    break;
                }
            } catch (Exception)
            {
            }
        }
예제 #3
0
 public LogEventArgs(string strLogText, Enums.WindowLogFlags eFlag)
 {
     mLogtext = strLogText;
     myFlag   = eFlag;
 }