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) { } }
protected virtual void OnFrameUpdated(FrameUpdatedEventArgs e) { FrameUpdatedEventHandler handler = FrameUpdated; if (handler != null) handler(e); }