Ejemplo n.º 1
0
        private void readMsg()
        {
            ShowMsgDelegate msgdlg = new ShowMsgDelegate(showMsg);

            while (isMMruning)
            {
                string sysmsg = "", trademsg = "";
                MessageManager.GetInstance().GetNewMessages(ref sysmsg, ref trademsg);
                this.BeginInvoke(msgdlg, sysmsg, trademsg);
                Thread.Sleep(1000);
            }
        }
Ejemplo n.º 2
0
 public void ShowMsg(string msg)
 {
     if (richTextBox1.InvokeRequired)
     {
         ShowMsgDelegate d = ShowMsg;
         richTextBox1.Invoke(d, msg);
     }
     else
     {
         StringBuilder sb = new StringBuilder();
         sb.Append(msg.ToString());
         this.richTextBox1.AppendText(sb.ToString());
     }
 }
Ejemplo n.º 3
0
        public void ShowMessage(string msg)
        {
            ShowMsgDelegate d = new ShowMsgDelegate(ShowMsg);

            this.Dispatcher.BeginInvoke(d, msg);
        }
Ejemplo n.º 4
0
 public void ShowMessage(string msg)
 {
     ShowMsgDelegate d = new ShowMsgDelegate(ShowMsg);
     this.Dispatcher.BeginInvoke(d, msg);
 }
Ejemplo n.º 5
0
 public LogHelper()
 {
     EvenShowMsgDelegate += show;
     InitializeComponent();
 }