/* * Quick and dirty non-general function * for checking command line flags */ public static void Parse(string[] args) { // defaults RunType = runType.repl; EnableBenchmark = false; ArgsFileIndex = 0; for (int i = 0; i < args.Length; i++) { string s = args[i]; if (s.StartsWith("-b")) { EnableBenchmark = true; } else { ArgsFileIndex = i; } } if (EnableBenchmark && args.Length > 1) { RunType = runType.file; } if (!EnableBenchmark && args.Length > 0) { RunType = runType.file; } }
private void loopTypeCB_SelectedIndexChanged(object sender, EventArgs e) { if (!paused) { TogglePause(); paused = false; } rt = (runType)(sender as ComboBox).SelectedValue; if (!paused) { paused = true; TogglePause(); } }