Exemplo n.º 1
0
 public static DialogResult MesssageBoxShow(
     UiLambdaSet lambdaSet,
     string content, string text, string caption, MessageBoxButtons buttons = 0)
 {
     if (lambdaSet?.MesssageBox != null)
     {
         return(lambdaSet.MesssageBox(content, text, caption, buttons));
     }
     return(System.Windows.Forms.MessageBox.Show(content + text, caption, buttons));
 }
Exemplo n.º 2
0
 public static AnyUiMessageBoxResult MesssageBoxShow(
     UiLambdaSet lambdaSet,
     string content, string text, string caption, AnyUiMessageBoxButton buttons = 0)
 {
     if (lambdaSet?.MesssageBox != null)
     {
         return(lambdaSet.MesssageBox(content, text, caption, buttons));
     }
     return(AnyUiMessageBoxResult.Cancel);
 }