void Command_Files_Names_MakeAbsolute(MakeAbsoluteDialog.Result result) { var results = GetFixedExpressionResults<string>(result.Expression); ReplaceSelections(GetSelectionStrings().Select((str, index) => new Uri(new Uri(results[index] + (result.Type == MakeAbsoluteDialog.ResultType.Directory ? "\\" : "")), str).LocalPath).ToList()); }
public static Result Run(Window parent, NEVariables variables, bool getType) { var dialog = new MakeAbsoluteDialog(variables, getType) { Owner = parent }; return dialog.ShowDialog() ? dialog.result : null; }