예제 #1
0
파일: Program.cs 프로젝트: labeuze/source
        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());
        }
예제 #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());
        }