Exemple #1
0
 private void RefreshSelectedControl()
 {
     if (SelectedControl == null)
     {
         return;
     }
     flowFileStatus.AutoScroll = true;
     flowFileStatus.ScrollControlIntoView(SelectedControl);
     SelectedControl.Invalidate();
     graphChromatograms.IsCanceled = SelectedControl.IsCanceled;
     if (SelectedControl.Error != null || SelectedControl.Warning != null)
     {
         textBoxError.Text = SelectedControl.GetErrorLog(cbMoreInfo.Checked);
         ShowControl(panelError);
     }
     else if (SelectedControl.Progress == 0)
     {
         labelFileName.Text = SelectedControl.FilePath.GetFileNameWithoutExtension();
         ShowControl(labelFileName);
     }
     else
     {
         graphChromatograms.Key = SelectedControl.FilePath.GetFilePath();
         ShowControl(graphChromatograms);
     }
 }
Exemple #2
0
 private string GetSelectedControlErrorLog()
 {
     return(SelectedControl == null ? string.Empty : SelectedControl.GetErrorLog(cbMoreInfo.Checked));
 }
 private void btnCopyText_Click(object sender, EventArgs e)
 {
     ClipboardEx.SetText(SelectedControl.GetErrorLog(cbMoreInfo.Checked));
 }
 private void cbShowErrorDetails_CheckedChanged(object sender, EventArgs e)
 {
     textBoxError.Text = SelectedControl.GetErrorLog(cbMoreInfo.Checked);
 }