예제 #1
0
 void ILogger.Warning(string warn)
 {
     if (On)
     {
         UiSync.Execute(() => _logView[3].Text += GestLogString(warn));
     }
 }
예제 #2
0
 void ILogger.Error(string error)
 {
     if (On)
     {
         UiSync.Execute(() => _logView[1].Text += GestLogString(error));
     }
 }
예제 #3
0
 void ILogger.Info(string info)
 {
     if (On)
     {
         UiSync.Execute(() => _logView[2].Text += GestLogString(info));
     }
 }
예제 #4
0
        void ILogger.Debug(string debug)
        {
            if (true)
            {
                return;
            }

            if (SessionInfo.Playing)
            {
                if (_debugSaveDone)
                {
                    UiSync.Execute(() => _logView[0].AppendText(GestLogString(debug)));
                }
                else
                {
                    _debugSaveDone = true;
                    UiSync.Execute(() => DebugSaveDoEEt(debug));
                }
            }
            else
            {
                if (_debugSaveDone)
                {
                    return;
                }
                if (_debugSaveStart > 2)
                {
                    (new System.Threading.Thread(() => _debugSave.Append(GestLogString(debug)))).Start();
                }

                ++_debugSaveStart;
            }
        }