Esempio n. 1
0
 private void ShowErrorinfo(string ErrorMsg)
 {
     if (!string.IsNullOrEmpty(ErrorMsg))
     {
         SystemErrorMessageCollection.Add(new MessageItem()
         {
             MsgType = EnumMessageType.Error, StrMsg = ErrorMsg
         });
     }
 }
Esempio n. 2
0
 private void ShowErrorinfo(string ErrorMsg)
 {
     if (!string.IsNullOrEmpty(ErrorMsg))
     {
         SnakeLastError   = $"{DateTime.Now.GetDateTimeFormats()[35]}: {ErrorMsg}";
         ShowSnakeInfoBar = true;
         SystemErrorMessageCollection.Add(new MessageItem()
         {
             MsgType = EnumMessageType.Error, StrMsg = SnakeLastError
         });
     }
 }
Esempio n. 3
0
 private void ShowErrorinfo(string ErrorMsg)
 {
     Application.Current.Dispatcher.BeginInvoke(new MyDel(() => {
         if (!string.IsNullOrEmpty(ErrorMsg) && LastError != ErrorMsg)
         {
             LastError        = ErrorMsg;
             SnakeLastError   = $"{DateTime.Now.GetDateTimeFormats()[35]}: {ErrorMsg}";
             ShowSnakeInfoBar = true;
             SystemErrorMessageCollection.Add(new MessageItem()
             {
                 MsgType = EnumMessageType.Error, StrMsg = SnakeLastError
             });
         }
     }), null);
 }