Kaynağa Gözat

Диаграммы
Отладочный класс

aleksynders 2 yıl önce
ebeveyn
işleme
0211fb99dc

BIN
Diagram/DiagramDeiatelnosti.png


BIN
Diagram/DiagramPosledovatelnosti.png


BIN
Diagram/DiagramSostoyanii.png


+ 22 - 0
ExamGromov/DebugAndTrace.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Diagnostics;
+
+namespace ExamGromov
+{
+    
+    public class DebugAndTrace
+    {
+        public static void Otladka()
+        {
+            Trace.Listeners.Add(new TextWriterTraceListener("Debug.txt"));
+            Debug.Indent();
+            Trace.Indent();
+            Debug.WriteLine("Открытие программы\n");
+            Trace.Flush();
+        }
+    }
+}

+ 1 - 1
ExamGromov/Program.cs

@@ -6,7 +6,7 @@ namespace ExamGromov
     {
         static void Main(string[] args)
         {
-            Console.WriteLine("Hello World!");
+            DebugAndTrace.Otladka();
         }
     }
 }