@@ -48,7 +48,7 @@ public MessageBoxHandler(ITemplateFactory templateFactory, IStringTable stringTa
48
48
/// <param name="text">Text of a message box</param>
49
49
/// <param name="status">Status of a message box</param>
50
50
/// <param name="title">Title of a message box</param>
51
- public void Show ( string text , MessageBoxStatus status = MessageBoxStatus . Error , string title = null )
51
+ public void Show ( string ? text , MessageBoxStatus status = MessageBoxStatus . Error , string ? title = null )
52
52
{
53
53
if ( string . IsNullOrEmpty ( text ) )
54
54
throw new ArgumentNullException ( nameof ( text ) ) ;
@@ -85,18 +85,16 @@ public void Show(string text, MessageBoxStatus status = MessageBoxStatus.Error,
85
85
/// <param name="stringTableItemName">Show message from string table item</param>
86
86
/// <param name="status">Status of a message box</param>
87
87
/// <param name="title">Title of a message box</param>
88
- public void ShowSt ( string stringTableItemName , MessageBoxStatus status = MessageBoxStatus . Error , string title = null )
89
- {
88
+ public void ShowSt ( string stringTableItemName , MessageBoxStatus status = MessageBoxStatus . Error , string ? title = null ) =>
90
89
Show ( _stringTable . GetItem ( stringTableItemName ) , status , title ) ;
91
- }
92
90
93
91
/// <summary>
94
92
/// Get inline message box HTML
95
93
/// </summary>
96
94
/// <param name="text">Text of a message box</param>
97
95
/// <param name="status">Status of a message box</param>
98
96
/// <returns>Message box html</returns>
99
- public string GetInline ( string text , MessageBoxStatus status = MessageBoxStatus . Error )
97
+ public string GetInline ( string ? text , MessageBoxStatus status = MessageBoxStatus . Error )
100
98
{
101
99
if ( string . IsNullOrEmpty ( text ) )
102
100
throw new ArgumentNullException ( nameof ( text ) ) ;
@@ -131,9 +129,7 @@ public string GetInline(string text, MessageBoxStatus status = MessageBoxStatus.
131
129
/// <param name="stringTableItemName">Show message from string table item</param>
132
130
/// <param name="status">Status of a message box</param>
133
131
/// <returns>Message box html</returns>
134
- public string GetInlineSt ( string stringTableItemName , MessageBoxStatus status = MessageBoxStatus . Error )
135
- {
136
- return GetInline ( _stringTable . GetItem ( stringTableItemName ) , status ) ;
137
- }
132
+ public string GetInlineSt ( string stringTableItemName , MessageBoxStatus status = MessageBoxStatus . Error ) =>
133
+ GetInline ( _stringTable . GetItem ( stringTableItemName ) , status ) ;
138
134
}
139
135
}
0 commit comments