Example #1
0
 private void onDbUpdateMessage(object sender, DBUpdater.MessageEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new DBUpdater.MessageEventHandler(onDbUpdateMessage), new object[] { sender, e });
     }
     else
     {
         addTextToMemo(e.Message);
     }
 }
Example #2
0
 private void onDbUpdateMessage(object sender, DBUpdater.MessageEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new DBUpdater.MessageEventHandler(onDbUpdateMessage), new object[] { sender, e });
     }
     else
     {
         string str = "\r\n";
         if (string.IsNullOrEmpty(memoEdit.Text))
         {
             str = "";
         }
         memoEdit.Text += (str + e.Message);
     }
 }