示例#1
0
		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);
			}
		}
示例#2
0
		public PlottingRangeController(ContiguousNonNegativeIntegerRange doc)
		{
			_originalDoc = doc;
			_doc = doc;
		}
示例#3
0
		public bool Apply(bool disposeController)
		{
			_originalDoc = _doc;
			return true;
		}