예제 #1
0
 public ChangeableCC(IPlayablePuzzleConstraints constraints)
 {
     this.columnConstraints = constraints;
     //constraints hebben een value, dus ik moet deze ook hebben om te zien als ik een match heb
     //om te zien als deze matchen
     this.Values = this.columnConstraints.Values.Map(value => new ChangeableValue(value, IsSatisfied));
 }
예제 #2
0
 public RowsVM(IPlayablePuzzleConstraints row)
 {
     this.row       = row;
     this.Satisfied = row.IsSatisfied;
 }
예제 #3
0
 public ColumnsVM(IPlayablePuzzleConstraints column)
 {
     this.column    = column;
     this.Satisfied = column.IsSatisfied;
 }
예제 #4
0
 public ConstraintsVM(IPlayablePuzzleConstraints constraints)
 {
     this.constraints = constraints;
     this.Values      = constraints.Values.Select(v => new ConstrainstValueVM(v)).ToList();
 }
예제 #5
0
 public ConstraintsVM(IPlayablePuzzleConstraints playablePuzzleConstraints)
 {
     this.playablePuzzleConstraints = playablePuzzleConstraints;
 }
예제 #6
0
 public ConstraintsVM(IPlayablePuzzleConstraints iPlayablePuzzleConstraintswrapped)
 {
     this.iPlayablePuzzleConstraintswrapped = iPlayablePuzzleConstraintswrapped;
     vmValues      = iPlayablePuzzleConstraintswrapped.Values.Map(constraints => new ConstraintsValueVM(constraints)).Copy();
     vmIsSatisfied = iPlayablePuzzleConstraintswrapped.IsSatisfied;
 }
 public IPlayablePuzzleConstraintsVM(IPlayablePuzzleConstraints constraints)
 {
     this.wrapped = constraints;
 }
 public PuzzleConstraintsViewModel(IPlayablePuzzleConstraints constraints)
 {
     this.playablePuzzleConstraints = constraints;
     this.Values = this.playablePuzzleConstraints.Values.Map(value => new PuzzleConstraintsValueViewModel(value)).Copy();
 }
예제 #9
0
 public PlayablePuzzleConstraintsValueViewModel(IPlayablePuzzleConstraints constraints)
 {
     this.Values = constraints;
 }
예제 #10
0
 public ConstraintsViewModel(IPlayablePuzzleConstraints constraints)
 {
     this.constraints = constraints;
     this.Values      = constraints.Values.Map((IPlayablePuzzleConstraintsValue value) => new ConstraintsValueViewModel(value)).Copy();
 }