// Output debug log information from API etc.
 public void DebugPrint(string methodname, string str)
 {
     Log_textBox.Dispatcher.Invoke(new Action(delegate()
     {
         string datetime = DateTime.Now.ToString("HH:mm:ss.fff");
         Log_textBox.AppendText(String.Format("{0}: {1}(): {2}\r\n", datetime, methodname, str));
         Log_textBox.ScrollToEnd();
     }));
 }
Exemple #2
0
        //
        //FUNCTIONS
        //

        //--Logger--
        public void LogAddText(string text)
        {
            Log_textBox.AppendText(text);
        }