public RenameVariableRequest GetRenameInfo(string originalName, PythonLanguageVersion languageVersion) { var requestView = new RenameVariableRequestView(originalName, languageVersion); LoadPreferences(requestView); var dialog = new RenameVariableDialog(requestView); bool res = dialog.ShowModal() ?? false; if (res) { SavePreferences(requestView); return requestView.GetRequest(); } return null; }
public RenameVariableRequest GetRenameInfo(string originalName, PythonLanguageVersion languageVersion) { var requestView = new RenameVariableRequestView(originalName, languageVersion); LoadPreferences(requestView); var dialog = new RenameVariableDialog(requestView); bool res = dialog.ShowModal() ?? false; if (res) { SavePreferences(requestView); return(requestView.GetRequest()); } return(null); }