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) { } }
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) { } }
/// <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")); }