private static void HandleInput(String input) { if (input.Equals("0")) { Console.WriteLine("Setting output level to detailed"); DataProcessor.SetOutputLevel(0); } else if (input.Equals("1")) { Console.WriteLine("Setting output level to simple"); DataProcessor.SetOutputLevel(1); } else if (input.Equals("2")) { Console.WriteLine("Setting output level to peptide only"); DataProcessor.SetOutputLevel(2); } else if (input.Equals("3")) { Console.WriteLine("Displaying only info headers"); DataProcessor.SetOutputLevel(3); } else if (input.Equals("q")) { Console.WriteLine("Quitting listening"); ExclusionExplorer.EndMealTimeMS(); } }
private void Orbitrap_AcquisitionStreamClosing(object sender, EventArgs e) { log.Info(String.Format("\n{0:HH:mm:ss,fff} {1}", DateTime.Now, "Acquisition stream closed (end of method)")); log.Info("press y to continue finish processing"); while (!Console.ReadKey().KeyChar.ToString().Equals("y")) { } ExclusionExplorer.EndMealTimeMS(); }