예제 #1
0
 private void printReportToolStripMenuItem_Click( object sender, EventArgs e)
 {
     CurrentMode = RUNMODE.PRINT;
     ModeLabel.Text = "Processing for Print";
     PickFile dlg = new PickFile(ref FileToUse);
     dlg.ShowDialog();
     if (dlg.DialogResult == DialogResult.OK) {
         FileToUse = dlg.ReturnFile;
         ParseElanFile(FileToUse, FileData, Samples);
         dlg.Close();
         PrintReport(Samples);
         RTB.AppendText("Complete... now in wait mode.");
     }
     else RTB.AppendText("Canceled... now in wait mode.");
     //Samples.Clear();
     //FileData.Clear();
 }
예제 #2
0
 private void uploadToolStripMenuItem_Click( object sender, EventArgs e)
 {
     CurrentMode = RUNMODE.UPLOAD;
     ModeLabel.Text = "Processing for Upload";
     PickFile dlg = new PickFile(ref FileToUse);
     dlg.ShowDialog();
     if (dlg.DialogResult == DialogResult.OK) {
         FileToUse = dlg.ReturnFile;
         Selection = (Runtype)dlg.Selection;
         dlg.Close();
         if (UploadToDo(FileToUse)) RTB.AppendText("Complete... now in wait mode.");
         else RTB.AppendText("Canceled... now in wait mode.");
     }
 }
예제 #3
0
 private void monitorRunToolStripMenuItem_Click( object sender, EventArgs e)
 {
     CurrentMode = RUNMODE.RERUN;
     ModeLabel.Text = "Processing for Monitoring";
     PickFile dlg = new PickFile(ref FileToUse);
     dlg.ShowDialog();
     if (dlg.DialogResult == DialogResult.OK) {
         PauseSource.Start();
         FileToUse = dlg.ReturnFile;
         string[] Splitme = FileToUse.Split("\\".ToCharArray());
         int Len = Splitme.Length;
         SourceLastTimes = new FileInfo( FileToUse);
         dlg.Close();
         this.Refresh();
         firstrun = true;
         Pathtouse = Directory.GetCurrentDirectory() + "\\" + Splitme[Len-1];
         SourceFileInfo = new FileInfo( FileToUse);
         if ( firstrun) {
             Monitor = new Thread(new ThreadStart( ProccessTick));
             Monitor.IsBackground = true;
             Monitor.Start();
             Stop_btn.Enabled = true;
             Stop_btn.Visible = true;
         }
         this.Refresh();
     }
 }