public void Clear() { lock (frames) { frames.Clear(); } }
private void ClearButton_Click(object sender, System.Windows.RoutedEventArgs e) { lock (frames) { frames.Clear(); } OnClearAllFrames(); }
public void Clear() { lock (frames) { frames.Clear(); } OnClearAllFrames(); }
public void Clear() { lock (frames) { foreach (var frame in frames) { frame.Clear(); } frames.Clear(); } }