예제 #1
0
 public void AppendToMainTitleBarText(ref string Text)
 {
     try
     {
         if (this.InvokeRequired)
         {
             AvoidCrossThreadDelegateRichTextBox tempDelegate = new AvoidCrossThreadDelegateRichTextBox(AppendToMainTitleBarText);
             this.Invoke(tempDelegate, Text);
         }
         else
         {
             this.Text = Text;
         }
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK);
     }
 }
예제 #2
0
 public void AppendToMainTitleBarText(ref string Text)
 {
     try
     {
         if (this.InvokeRequired)
         {
             var tempDelegate = new AvoidCrossThreadDelegateRichTextBox(AppendToMainTitleBarText);
             this.Invoke(tempDelegate, Text);
         }
         else
         {
             this.Text = Text;
         }
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK);
     }
 }