コード例 #1
0
ファイル: DebugLog.cs プロジェクト: AluminumKen/hl2sb-src
        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
ファイル: DebugLog.cs プロジェクト: bmk10/hl2sb-src-1
        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");
        }