Ejemplo n.º 1
0
 private void SpotifySeekerOverlaySetOpacity(double opacity)
 {
     if (this.InvokeRequired)
     {
         SetOpacityCallback d = new SetOpacityCallback(SpotifySeekerOverlaySetOpacity);
         this.Invoke(d, new object[] { opacity });
     }
     else
     {
         this.Opacity = opacity;
     }
 }
Ejemplo n.º 2
0
 public void SetOpacity(double opacity)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.textBox.InvokeRequired)
     {
         SetOpacityCallback d = new SetOpacityCallback(SetOpacity);
         this.Invoke(d, new object[] { opacity });
     }
     else
     {
         this.Opacity = opacity;
     }
 }
Ejemplo n.º 3
0
 public void SetOpacity(double value)
 {
     try
     {
         if (InvokeRequired)
         {
             SetOpacityCallback callback = new SetOpacityCallback(SetOpacity);
             this.Invoke(callback, new object[] { value });
         }
         else
         {
             Opacity = value;
         }
     }
     catch (Exception ex)
     {
         Program.Log(LogType.Error, ex.ToString());
     }
 }
Ejemplo n.º 4
0
 private void SetOpacity(double opacity)
 {
     if (this.InvokeRequired) {
         SetOpacityCallback d = new SetOpacityCallback (SetOpacity);
         this.Invoke (d, new object [] { opacity });
     } else {
         this.Opacity = opacity;
     }
 }