/// <summary> /// Gets a new Part /// </summary> public IByteCounterStreamPart GetNewPart(Stream withStream) { var partialByteCounterStreamPart = new PartialByteCounterStreamPart(withStream, 2024, Options, this); Partials.Add(partialByteCounterStreamPart); return(partialByteCounterStreamPart); }
/// <summary> /// Init partials with basic data /// </summary> private void InitPartials() { foreach (var key in EnumHelper.GetAllValuesAndDescriptions(typeof(DrumKey))) { var partial = new Partial.Partial((DrumKey)key.Value); partial.PropertyChanged += (sender, args) => NotifyOfPropertyChange(partial.Key.ToString()); Partials.Add((DrumKey)key.Value, partial); } }