Bewertungssystem angefangen

This commit is contained in:
2023-09-11 20:39:23 +02:00
parent f41cfff5c0
commit 560ac6246b
32 changed files with 9504 additions and 51 deletions

View File

@@ -0,0 +1,45 @@
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<ObservableCollection<ICellViewModel>> 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<ObservableCollection<ICellViewModel>>();
ICellViewModel cell = new CellViewModel();
Cells.Add(new ObservableCollection<ICellViewModel>()
{
});
}
}
public interface ICellViewModel
{
ICell Cell { get; set; }
ICommand ChangeCellStateCommand { get; }
}
public interface ICell
{
/// <summary>
/// State of the cell.
/// </summary>
bool State { get; set; }
}
}