public static void ShowMsgTitle(string title, string msg)
 {
     STATIC_APP.DispatchProxy(() => {
         try {
             MsgBoxSimple.ShowBox(title, msg);
         }
         catch (Exception) { }
     });
 }
 public static void ShowErrMsg(string msg)
 {
     STATIC_APP.DispatchProxy(() => {
         try {
             MsgBoxSimple.ShowBox(DI.W.GetText(MsgCode.Error), msg);
         }
         catch (Exception) { }
     });
 }
 private void LogHelper_EveryMsgEvent(object sender, string msg)
 {
     STATIC_APP.DispatchProxy(() => {
         try {
             this.LogMsgEvent?.Invoke(this, msg);
         }
         catch (Exception) { }
     });
 }
 public static bool ShowAreYouSure(string title, string msg)
 {
     return(STATIC_APP.DispatchProxy(() => {
         try {
             return MsgBoxYesNo.ShowBox(title, msg) == MsgBoxYesNo.MsgBoxResult.Yes;
         }
         catch (Exception) {
             return false;
         }
     }));
 }
Esempio n. 5
0
 public static void ShowMsgTitle(string title, string msg)
 {
     STATIC_APP.DispatchProxy(() => WindowHelpers.ShowMsgTitle(title, msg));
 }
Esempio n. 6
0
 public static void ShowMsg(string msg)
 {
     STATIC_APP.DispatchProxy(() => WindowHelpers.ShowMsg(msg));
 }