using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using System.Windows.Media; namespace dcnsanplanung.wpf.ViewModel { internal class DesignDynamicGridViewModel : BaseViewModel { public ObservableCollection> Cells { get; } = null; public int GridWidth { get; } = 5; public int GridHeight { get; } = 5; public Color StartColor { get; set; } = Colors.AliceBlue; public Color FinishColor { get; set; } = Colors.DarkBlue; public Color BorderColor { get; set; } = Colors.DarkGray; public DesignDynamicGridViewModel() { Cells = new ObservableCollection>(); ICellViewModel cell = new CellViewModel(); Cells.Add(new ObservableCollection() { }); } } public interface ICellViewModel { ICell Cell { get; set; } ICommand ChangeCellStateCommand { get; } } public interface ICell { /// /// State of the cell. /// bool State { get; set; } } }