@@ -48,7 +48,7 @@ public MessageBoxHandler(ITemplateFactory templateFactory, IStringTable stringTa
4848 /// <param name="text">Text of a message box</param>
4949 /// <param name="status">Status of a message box</param>
5050 /// <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 )
5252 {
5353 if ( string . IsNullOrEmpty ( text ) )
5454 throw new ArgumentNullException ( nameof ( text ) ) ;
@@ -85,18 +85,16 @@ public void Show(string text, MessageBoxStatus status = MessageBoxStatus.Error,
8585 /// <param name="stringTableItemName">Show message from string table item</param>
8686 /// <param name="status">Status of a message box</param>
8787 /// <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 ) =>
9089 Show ( _stringTable . GetItem ( stringTableItemName ) , status , title ) ;
91- }
9290
9391 /// <summary>
9492 /// Get inline message box HTML
9593 /// </summary>
9694 /// <param name="text">Text of a message box</param>
9795 /// <param name="status">Status of a message box</param>
9896 /// <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 )
10098 {
10199 if ( string . IsNullOrEmpty ( text ) )
102100 throw new ArgumentNullException ( nameof ( text ) ) ;
@@ -131,9 +129,7 @@ public string GetInline(string text, MessageBoxStatus status = MessageBoxStatus.
131129 /// <param name="stringTableItemName">Show message from string table item</param>
132130 /// <param name="status">Status of a message box</param>
133131 /// <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 ) ;
138134 }
139135}
0 commit comments