public bool GetMinimalNewExperiment(out NewRun aNewExperiment) { aNewExperiment = new NewRun(); _view = new WindowMinimalNewRun { Owner = _mainView, Controller = this }; // Open the dialog box modally if (!(_view.ShowDialog() ?? false)) return false; aNewExperiment.ExperimentName = _view.txtExperimentName.Text; aNewExperiment.ContainerBarcode = _view.txtContainerBarcode.Text; aNewExperiment.MacroName = _view.txtMacroName.Text; return true; }
public bool StartRun(NewRun aRun) { if (aRun == null) { return(false); } if (!EnsureConnected()) { return(false); } _lastResult = _connection.Instrument.StartExperiment(aRun.ExperimentName, aRun.ContainerBarcode, aRun.MacroName, null); return(IsLastResultSuccessful); }
public bool GetMinimalNewExperiment(out NewRun aNewExperiment) { aNewExperiment = new NewRun(); _view = new WindowMinimalNewRun { Owner = _mainView, Controller = this }; // Open the dialog box modally if (!(_view.ShowDialog() ?? false)) { return(false); } aNewExperiment.ExperimentName = _view.txtExperimentName.Text; aNewExperiment.ContainerBarcode = _view.txtContainerBarcode.Text; aNewExperiment.MacroName = _view.txtMacroName.Text; return(true); }
public bool StartRun(NewRun aRun) { if (aRun == null) return false; if (!EnsureConnected()) return false; _lastResult = _connection.Instrument.StartExperiment(aRun.ExperimentName, aRun.ContainerBarcode, aRun.MacroName, null); return IsLastResultSuccessful; }