Esempio n. 1
0
		void Command_Numeric_Series_Linear(NumericSeriesDialog.Result result) => ReplaceSelections(Selections.Select((range, index) => (result.Increment * index + result.Start).ToString()).ToList());
Esempio n. 2
0
		void Command_Numeric_Series_Geometric(NumericSeriesDialog.Result result) => ReplaceSelections(Selections.Select((range, index) => (Math.Pow(result.Increment, index) * result.Start).ToString()).ToList());
		static public Result Run(Window parent, bool linear, double start, double increment)
		{
			var dialog = new NumericSeriesDialog(linear, start, increment) { Owner = parent };
			return dialog.ShowDialog() ? dialog.result : null;
		}