Ejemplo n.º 1
0
 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)
     {
     }
 }
Ejemplo n.º 2
0
 private void _frameCounter_FrameUpdated(FrameUpdatedEventArgs e)
 {
     try
     {
         Invoke(
             (MethodInvoker)
             delegate
         {
             this.Text = string.Format("{0} - FPS: {1}",
                                       PencereYardımcısı.GetWindowTitle("Uzak Masaüstü", _connectClient),
                                       e.CurrentFramesPerSecond.ToString("0.00"));
         });
     }
     catch (InvalidOperationException)
     {
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Updates the title with the current frames per second.
 /// </summary>
 /// <param name="e">The new frames per second.</param>
 private void frameCounter_FrameUpdated(FrameUpdatedEventArgs e)
 {
     this.Text = string.Format("{0} - FPS: {1}", WindowHelper.GetWindowTitle("Remote Desktop", _connectClient), e.CurrentFramesPerSecond.ToString("0.00"));
 }