private void Step3NextBtn_Click(object sender, EventArgs e) { state = AWSteps.Step4; active = 0; UpdateUI(); }
private void Step2BNextBtn_Click(object sender, EventArgs e) { state = AWSteps.Step3; if (fromINCCAcquire) { Step3DescriptionLabel.Text = "Select a multiplicity analyzer for INCC"; // todo: disable the non-SR rows } else { Step3DescriptionLabel.Text = "Choose a List Mode counting analysis method"; } UpdateUI(); }
private void Step3BackBtn_Click(object sender, EventArgs e) { active = 0; if (ap.data_src.Live()) { state = AWSteps.Step2B; } else { state = AWSteps.Step2A; } UpdateUI(); }
private void Step2BBackBtn_Click(object sender, EventArgs e) { if (fromINCCAcquire) { DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Close(); } else { state = AWSteps.Step1; this.Step2BNextBtn.Enabled = false; UpdateUI(); } }
private void Step1RealTimeButton_Click(object sender, EventArgs e) { state = AWSteps.Step2B; ap.data_src = ConstructedSource.Live; UpdateUI(); }
// STATE 1 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void Step1PostProcessButton_Click(object sender, EventArgs e) { state = AWSteps.Step2A; ap.data_src = ConstructedSource.NCDFile; // todo: get from AppContext State UpdateUI(); }
private void Step4BackBtn_Click(object sender, EventArgs e) { active = 0; state = AWSteps.Step3; UpdateUI(); }
public AnalysisWizard(AWSteps startHere, AcquireParameters lmap, Detector lmdet) { det = lmdet; ap = lmap; if (startHere == AWSteps.Step1) // fresh List Mode only { ResetMeasurement(); Integ.BuildMeasurement(ap, det, AssaySelector.MeasurementOption.unspecified); } //cntap = CountingAnalysisParameters.Copy(NC.App.Opstate.Measurement.AnalysisParams); alt = CountingAnalysisParameters.Copy(NC.App.Opstate.Measurement.AnalysisParams); InitializeComponent(); // Stack all the panels up on top of each other; window is set to autosize to whatever is visible. this.Step2APanel.Left = 4; this.Step2APanel.Top = 6; this.Step2BPanel.Left = 4; this.Step2BPanel.Top = 6; this.Step3Panel.Left = 4; this.Step3Panel.Top = 6; this.Step4Panel.Left = 4; this.Step4Panel.Top = 6; state = startHere; if (state != AWSteps.Step1) { fromINCCAcquire = true; ap.data_src = (state == AWSteps.Step2B ? ConstructedSource.Live : ConstructedSource.NCDFile); // default file type is NCD, updated in UI from acquire param details } CycleIntervalPatch(); // guard for bad LM cycle and interval // Set the visibilities correctly for the initial state UpdateUI(); }