Beispiel #1
0
 void ILogger.Warning(string warn)
 {
     if (On)
     {
         UiSync.Execute(() => _logView[3].Text += GestLogString(warn));
     }
 }
Beispiel #2
0
 void ILogger.Error(string error)
 {
     if (On)
     {
         UiSync.Execute(() => _logView[1].Text += GestLogString(error));
     }
 }
Beispiel #3
0
 void ILogger.Info(string info)
 {
     if (On)
     {
         UiSync.Execute(() => _logView[2].Text += GestLogString(info));
     }
 }
Beispiel #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;
            }
        }