public static Result Run(NEVariables variables, Window parent) { var dialog = new RandomDataDialog(variables) { Owner = parent }; return dialog.ShowDialog() ? dialog.result : null; }
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()); }