예제 #1
0
		void Command_Numeric_Series_Linear(NumericSeriesDialog.Result result) => ReplaceSelections(Selections.Select((range, index) => (result.Increment * index + result.Start).ToString()).ToList());
예제 #2
0
		void Command_Numeric_Series_Geometric(NumericSeriesDialog.Result result) => ReplaceSelections(Selections.Select((range, index) => (Math.Pow(result.Increment, index) * result.Start).ToString()).ToList());
예제 #3
0
		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;
		}