private void btnReader_Click(object sender, EventArgs e) { RawReader raw = new RawReader(txtFileName.Text, enumRawDataType.raw); for (int i = 1; i < 2000; i++) { MSScan s = raw.ReadScan(i); Console.WriteLine(i.ToString()); } //ReadScan(Convert.ToInt32(txtScanNo.Text)); raw = null; GC.Collect(); }
private void btnConsoleInput_Click(object sender, EventArgs e) { RawReader raw = new RawReader(@"E:\Dropbox\@Paper\MyPaper\GlycanSeq_AC\Data\H1N1\P_Trypsin_IU_090710_HCD.RAW", "r"); DateTime Start = DateTime.Now; for (int i = 2007; i <= 2010; i++) { raw.ReadScan(i); Console.WriteLine(i.ToString()); } double End = DateTime.Now.Subtract(Start).TotalSeconds; Console.WriteLine(End); }