void MyExperimentConfigurator_StartExperimentEvent(object sender, EventArgs e) { MyRunExperimentControl.Configure(m_imager); MyRunExperimentControl.InitBarcodeResetRadioButtons(); MyRunExperimentControl.VM.ExpParams.experimentCurrentPlateNumber = 0; MyRunExperimentControl.VM.CurrentPlateNumberText = MyRunExperimentControl.VM.ExpParams.experimentCurrentPlateNumber.ToString(); VM.ShowRunExperimentPanel = true; }
void MyExperimentConfigurator_StartExperimentEvent(object sender, EventArgs e) { Dispatcher.Invoke((Action)(() => { MyRunExperimentControl.Configure(m_imager); MyRunExperimentControl.InitBarcodeResetRadioButtons(); MyRunExperimentControl.VM.ExpParams.experimentCurrentPlateNumber = 0; MyRunExperimentControl.VM.CurrentPlateNumberText = MyRunExperimentControl.VM.ExpParams.experimentCurrentPlateNumber.ToString(); VM.ShowRunExperimentPanel = true; MyRunExperimentControl.VM.EvalRunStatus(); GlobalVars.Instance.Status = WGStatus.READY; MyRunExperimentControl.Run(); })); }
void Configure_RunExperimentControl() { MyRunExperimentControl.Configure(m_imager); }