Example #1
0
		public static Result Run(NEVariables variables, Window parent)
		{
			var dialog = new RandomDataDialog(variables) { Owner = parent };
			return dialog.ShowDialog() ? dialog.result : null;
		}
Example #2
0
		void Command_Text_RandomText(RandomDataDialog.Result result)
		{
			var results = GetFixedExpressionResults<int>(result.Expression);
			ReplaceSelections(Selections.AsParallel().AsOrdered().Select((range, index) => GetRandomData(result.Chars, results[index])).ToList());
		}