예제 #1
0
        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;
        }
예제 #2
0
        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);
        }