void Command_Numeric_MinMaxValues(MinMaxValuesDialog.Result result) => ReplaceSelections(string.Join(" ", new List<string> { result.Min ? result.CodePage.MinValue() : null, result.Max ? result.CodePage.MaxValue() : null }.Where(str => !string.IsNullOrEmpty(str))));
static public Result Run(Window parent) { var dialog = new MinMaxValuesDialog { Owner = parent }; return dialog.ShowDialog() ? dialog.result : null; }