Exemplo n.º 1
0
 void Dispatcher_onNoticeMessage(EMessage type, string message)
 {
     PuMain.Setting.Threading.QueueOnMainThread(() =>
     {
         string title =
             type == EMessage.Message ? "Thông báo" :
             type == EMessage.Warning ? "Cảnh báo" :
             type == EMessage.Error ? "Lỗi" : type.ToString();
         DialogService.Instance.ShowDialog(new DialogMessage(title, message, null));
     });
 }
 internal void Write(LogType type, EMessage msg)
 {
     ThreadPool.QueueUserWorkItem(o => Write(type, msg.ToString()));
 }