Update() static private method

static private Update ( ) : void
return void
示例#1
0
 void OnTick(object sender, EventArgs eventArgs)
 {
     // This will only be true if the target window is active
     // (or very recently has been, depends on your update rate)
     if (OverlayWindow.IsVisible)
     {
         OverlayWindow.Update();
     }
 }
示例#2
0
        private void OnTick(object sender, EventArgs e)
        {
            if (!OverlayWindow.IsVisible)
            {
                OverlayWindow.Update();
            }

            OverlayWindow.Update();
            InternalRender();
        }
示例#3
0
        private void OnTick(object?_, EventArgs e)
        {
            // This will only be true if the target window is active
            // (or very recently has been, depends on your update rate)
            if (!OverlayWindow.IsVisible)
            {
                return;
            }

            OverlayWindow.Update();
            InternalRender();
        }
示例#4
0
 void OnTick(object sender, EventArgs eventArgs)
 {
     // This will only be true if the target window is active
     // (or very recently has been, depends on your update rate)
     if (OverlayWindow.IsVisible)
     {
         Application.Current.Dispatcher.Invoke((Action) delegate
         {
             if (OverlayWindow != null)
             {
                 OverlayWindow.Update();
             }
         });
     }
 }