Beispiel #1
0
 public void ShowErrorMsg(string Msg)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         ShowErrorMsg_d InvokeDelegate_d = new ShowErrorMsg_d(ShowErrorMsg);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Msg });
     }
     else
     {
         StatusAndErrorTB.Text = Msg;
         if (Msg.Length == 0)
         {
             StatusAndErrorTB.Visible = false;
         }
         else
         {
             StatusAndErrorTB.ForeColor = Color.Red;
             StatusAndErrorTB.Visible   = true;
         }
     }
 }
Beispiel #2
0
 public void ShowErrorMsg(string Msg)
 {
     if (this.BaseTabs.InvokeRequired)
     {
         ShowErrorMsg_d InvokeDelegate_d = new ShowErrorMsg_d(ShowErrorMsg);
         this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Msg });
     }
     else
     {
         StatusAndErrorTB.Text = Msg;
         if (Msg.Length == 0)
         {
             StatusAndErrorTB.Visible = false;
         }
         else
         {
             StatusAndErrorTB.ForeColor = Color.Red;
             StatusAndErrorTB.Visible = true;
         }
     }
 }