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" ); }
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"); }