public void InitializePlayPanels() { foreach (var control in this.Controls) { PlayPanel playPanel = control as PlayPanel; if (playPanel != null) { playPanel.TraceBarChangedHandler += TraceBarChangedHandler; this._playPanels.Add(playPanel); } } }
private void TraceBarChangedHandler(PlayPanel playPanel, int value) { this._frames = GetFrames(value.ToString()); }