Exemplo n.º 1
0
        static void Main()
        {
            WriteToFile writeToFile = new WriteToFile("log.txt");
            Trace.OnWrite += writeToFile.Write;
            Trace.WriteLine("Test_wcf_service : {0:dd/MM/yyyy HH:mm:ss}", DateTime.Now);
            Trace.WriteLine();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Exemplo n.º 2
0
        static void Main()
        {
            WriteToFile writeToFile = new WriteToFile("log.txt");

            Trace.OnWrite += writeToFile.Write;
            Trace.WriteLine("Test_wcf_service : {0:dd/MM/yyyy HH:mm:ss}", DateTime.Now);
            Trace.WriteLine();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }