Esempio n. 1
0
 private void SetPropertyThreadSafe(System.ComponentModel.Component what, object setto, string property)
 {
     if (this.InvokeRequired)
     {
         SetPropertyThreadSafeCallback sptscb = new SetPropertyThreadSafeCallback(SetPropertyThreadSafe);
         try
         {
             this.Invoke(sptscb, new object[] { what, setto, property });
         }
         catch (Exception)
         {
             // FFFFF!
         }
         return;
     }
     what.GetType().GetProperty(property).SetValue(what, setto, null);
     //what.Text = setto;
 }
Esempio n. 2
0
 private void SetPropertyThreadSafe(System.ComponentModel.Component what, object setto, string property)
 {
     if (this.InvokeRequired)
     {
         SetPropertyThreadSafeCallback sptscb = new SetPropertyThreadSafeCallback(SetPropertyThreadSafe);
         try
         {
             this.Invoke(sptscb, new object[] { what, setto, property });
         }
         catch (Exception)
         {
             // FFFFF!
         }
         return;
     }
     what.GetType().GetProperty(property).SetValue(what, setto, null);
     //what.Text = setto;
 }