using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsolePainter { internal interface IDataSource { string Name { get; } IEnumerable Data { get; } int Count { get; } event EventHandler? DataChanged; } internal class EmptySource : IDataSource { private EmptySource(){} public static EmptySource Empty { get; } = new EmptySource(); public string Name => ""; public IEnumerable Data => []; public int Count => 0; public event EventHandler? DataChanged { add { } remove { } } } }