Beispiel #1
0
        protected virtual void OnFrameUpdated(FrameUpdatedEventArgs e)
        {
            FrameUpdatedEventHandler handler = FrameUpdated;

            if (handler != null)
            {
                handler(e);
            }
        }
 private void _frameCounter_FrameUpdated(FrameUpdatedEventArgs e)
 {
     try
     {
         this.Invoke((MethodInvoker)delegate
         {
             this.Text = string.Format("{0} - FPS: {1}", WindowHelper.GetWindowTitle("Remote Desktop", _connectClient), e.CurrentFramesPerSecond.ToString("0.00"));
         });
     }
     catch (InvalidOperationException)
     {
     }
 }
Beispiel #3
0
 protected virtual void OnFrameUpdated(FrameUpdatedEventArgs e)
 {
     FrameUpdatedEventHandler handler = FrameUpdated;
     if (handler != null)
         handler(e);
 }