Пример #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");
        }