public void EhView_Changed(int from, int to) { try { if (to != int.MaxValue) { _doc = ContiguousNonNegativeIntegerRange.NewFromStartAndLast(from, to); } else { _doc = ContiguousNonNegativeIntegerRange.NewFromStartToInfinity(from); } } catch (Exception ex) { Current.Gui.ErrorMessageBox(ex.Message); } }
public PlottingRangeController(ContiguousNonNegativeIntegerRange doc) { _originalDoc = doc; _doc = doc; }
public bool Apply(bool disposeController) { _originalDoc = _doc; return(true); }