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 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); }