public static Result Run(Window parent, string example) { var dialog = new ConvertDateTimeDialog(example) { Owner = parent }; return dialog.ShowDialog() ? dialog.result : null; }
void Command_DateTime_Convert(ConvertDateTimeDialog.Result result) => ReplaceSelections(Selections.AsParallel().AsOrdered().Select(range => ConvertDateTimeDialog.ConvertFormat(GetString(range), result.InputFormat, result.InputUTC, result.OutputFormat, result.OutputUTC)).ToList());