Skip to content

Commit 6896fb1

Browse files
committed
Add caption, specific button, and icon to Introduce {0} refactorings. Forget to switch branches to BugBlipper, but just doing it here should be fine since it is in a commit by itself.
1 parent 975f19f commit 6896fb1

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

RetailCoder.VBE/Refactorings/IntroduceField/IntroduceFieldRefactoring.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public void Refactor()
3030

3131
if (!selection.HasValue)
3232
{
33-
_messageBox.Show(RubberduckUI.PromoteVariable_InvalidSelection);
33+
_messageBox.Show(RubberduckUI.PromoteVariable_InvalidSelection, RubberduckUI.IntroduceField_Caption,
34+
System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
3435
return;
3536
}
3637

RetailCoder.VBE/Refactorings/IntroduceParameter/IntroduceParameterRefactoring.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public void Refactor()
4242

4343
if (!selection.HasValue)
4444
{
45-
_messageBox.Show(RubberduckUI.PromoteVariable_InvalidSelection);
45+
_messageBox.Show(RubberduckUI.PromoteVariable_InvalidSelection, RubberduckUI.IntroduceParameter_Caption,
46+
System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
4647
return;
4748
}
4849

RetailCoder.VBE/UI/RubberduckUI.Designer.cs

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/RubberduckUI.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,4 +1275,10 @@ Are you sure you want to proceed with this rename?</value>
12751275
<value>'{0}' has references in multiple methods.</value>
12761276
<comment>{0}: Variable Name</comment>
12771277
</data>
1278+
<data name="IntroduceField_Caption" xml:space="preserve">
1279+
<value>Rubberduck - Introduce Field</value>
1280+
</data>
1281+
<data name="IntroduceParameter_Caption" xml:space="preserve">
1282+
<value>Rubberduck - Introduce Parameter</value>
1283+
</data>
12781284
</root>

0 commit comments

Comments
 (0)