@@ -37,52 +37,52 @@ public enum MessageBoxImage
3737
3838
3939 /// 1 parameter
40- public static MessageBoxResult Show ( string msg )
40+ public static MessageBoxResult Show ( string messageBoxText )
4141 {
42- return Show ( string . Empty , msg , MessageBoxButton . OK , MessageBoxImage . None ) ;
42+ return Show ( string . Empty , messageBoxText , MessageBoxButton . OK , MessageBoxImage . None ) ;
4343 }
4444
4545 // 2 parameter
46- public static MessageBoxResult Show ( string caption , string text )
46+ public static MessageBoxResult Show ( string messageBoxText , string title )
4747 {
48- return Show ( caption , text , MessageBoxButton . OK , MessageBoxImage . None ) ;
48+ return Show ( messageBoxText , title , MessageBoxButton . OK , MessageBoxImage . None ) ;
4949 }
5050
5151 /// 3 parameter
52- public static MessageBoxResult Show ( string caption , string msg , MessageBoxType type )
52+ public static MessageBoxResult Show ( string messageBoxText , string title , MessageBoxType type )
5353 {
5454 switch ( type )
5555 {
5656 case MessageBoxType . ConfirmationWithYesNo :
57- return Show ( caption , msg , MessageBoxButton . YesNo ,
57+ return Show ( messageBoxText , title , MessageBoxButton . YesNo ,
5858 MessageBoxImage . Question ) ;
5959 case MessageBoxType . YesNo :
60- return Show ( caption , msg , MessageBoxButton . YesNo ,
60+ return Show ( messageBoxText , title , MessageBoxButton . YesNo ,
6161 MessageBoxImage . Question ) ;
6262 case MessageBoxType . ConfirmationWithYesNoCancel :
63- return Show ( caption , msg , MessageBoxButton . YesNoCancel ,
63+ return Show ( messageBoxText , title , MessageBoxButton . YesNoCancel ,
6464 MessageBoxImage . Question ) ;
6565 case MessageBoxType . Information :
66- return Show ( caption , msg , MessageBoxButton . OK ,
66+ return Show ( messageBoxText , title , MessageBoxButton . OK ,
6767 MessageBoxImage . Information ) ;
6868 case MessageBoxType . Error :
69- return Show ( caption , msg , MessageBoxButton . OK ,
69+ return Show ( messageBoxText , title , MessageBoxButton . OK ,
7070 MessageBoxImage . Error ) ;
7171 case MessageBoxType . Warning :
72- return Show ( caption , msg , MessageBoxButton . OK ,
72+ return Show ( messageBoxText , title , MessageBoxButton . OK ,
7373 MessageBoxImage . Warning ) ;
7474 default :
7575 return MessageBoxResult . No ;
7676 }
7777 }
7878
7979 // 4 parameter, Final Display Message.
80- public static MessageBoxResult Show ( string caption , string text , MessageBoxButton button , MessageBoxImage image )
80+ public static MessageBoxResult Show ( string messageBoxText , string title , MessageBoxButton button , MessageBoxImage image )
8181 {
8282 msgBox = new MessageBoxEx ( ) ;
83- msgBox . TitleTextBlock . Text = text ;
84- msgBox . DescTextBlock . Text = caption ;
85- msgBox . Title = text ;
83+ msgBox . TitleTextBlock . Text = title ;
84+ msgBox . DescTextBlock . Text = messageBoxText ;
85+ msgBox . Title = title ;
8686 SetVisibilityOfButtons ( button ) ;
8787 SetImageOfMessageBox ( image ) ;
8888 msgBox . ShowDialog ( ) ;
0 commit comments