public void EhView_SelectLabelColumn() { SingleColumnChoice choice = new SingleColumnChoice(); choice.SelectedColumn = _doc.LabelColumn as DataColumn; object choiceAsObject = choice; if (Current.Gui.ShowDialog(ref choiceAsObject, "Select label column")) { choice = (SingleColumnChoice)choiceAsObject; _labelColumn = choice.SelectedColumn; InitializeLabelColumnText(); } }
void EhView_ChooseNegativeError(object sender, EventArgs e) { SingleColumnChoice choice = new SingleColumnChoice(); choice.SelectedColumn = _tempNegErrorColumn != null ? _tempNegErrorColumn as DataColumn: _doc.NegativeErrorColumn as DataColumn; object choiceAsObject = choice; if (Current.Gui.ShowDialog(ref choiceAsObject, "Select negative error column")) { choice = (SingleColumnChoice)choiceAsObject; if (choice.SelectedColumn is INumericColumn) { _tempNegErrorColumn = (INumericColumn)choice.SelectedColumn; _view.NegativeError = _tempNegErrorColumn.FullName; } } }
public SingleColumnChoiceController(SingleColumnChoice doc) { _doc = doc; Initialize(true); }
public SingleColumnChoiceController(SingleColumnChoice doc) { _doc = doc; }
public void EhView_SelectLabelColumn() { SingleColumnChoice choice = new SingleColumnChoice(); choice.SelectedColumn = _doc.LabelColumn as DataColumn; object choiceAsObject = choice; if(Current.Gui.ShowDialog(ref choiceAsObject,"Select label column")) { choice = (SingleColumnChoice)choiceAsObject; _labelColumn = choice.SelectedColumn; InitializeLabelColumnText(); } }
public void EhView_ChooseDependentColumn(int idx) { SingleColumnChoice choice = new SingleColumnChoice(); choice.SelectedColumn = _doc.DependentVariables(idx) as DataColumn; object choiceAsObject = choice; if (Current.Gui.ShowDialog(ref choiceAsObject, "Select dependent column")) { choice = (SingleColumnChoice)choiceAsObject; if (choice.SelectedColumn is INumericColumn) { _doc.SetDependentVariable(idx, (INumericColumn)choice.SelectedColumn); } else { Current.Gui.ErrorMessageBox("Choosen column is not numeric!"); } } _view.Refresh(); }