예제 #1
0
        static DebugLog()
        {
            if ( Environment.CommandLine.IndexOf( "-debug", StringComparison.OrdinalIgnoreCase ) == -1 )
                return;

            debugForm = new DebugForm();
            debugForm.Show();

            debugFile = Path.Combine( Application.StartupPath, "debug.log" );

            if ( File.Exists( debugFile ) )
                File.Delete( debugFile );

            AppendText( "Logging started.\n\n" );
        }
예제 #2
0
        static DebugLog()
        {
            if (Environment.CommandLine.IndexOf("-debug", StringComparison.OrdinalIgnoreCase) == -1)
            {
                return;
            }

            debugForm = new DebugForm();
            debugForm.Show();

            debugFile = Path.Combine(Application.StartupPath, "debug.log");

            if (File.Exists(debugFile))
            {
                File.Delete(debugFile);
            }

            AppendText("Logging started.\n\n");
        }