private void ShowErrorinfo(string ErrorMsg) { if (!string.IsNullOrEmpty(ErrorMsg)) { SystemErrorMessageCollection.Add(new MessageItem() { MsgType = EnumMessageType.Error, StrMsg = ErrorMsg }); } }
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 }); } }
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); }