示例#1
0
 public PuzzleSquareViewModel(IPlayablePuzzleSquare puzzleSquare)
 {
     this.PuzzleSquare   = puzzleSquare;
     this.FillCommand    = new FillCommand(this);
     this.EmptyCommand   = new EmptyCommand(this);
     this.UnknownCommand = new UnknownCommand(this);
 }
 public SquareViewModel(IPlayablePuzzleSquare square)
 {
     this.square = square;
     this.Cycle  = new EnabledCommand(PerformCycle);
 }
示例#3
0
 public SquareVM(IPlayablePuzzleSquare playablePuzzleSquare)
 {
     this.puzzleSquare = playablePuzzleSquare;
 }
示例#4
0
 public SquareVM(IPlayablePuzzleSquare square)
 {
     this.Wrapped      = square;
     this.CycleCommand = new CycleCommand(this);
 }
 public ChangeableSquare(IPlayablePuzzleSquare square)
 {
     this.changeableSquare = square;
     ChangeColorWhite      = new ClickCommandRight(this);
     ChangeColorBlack      = new ClickCommandLeft(this);
 }
示例#6
0
 private void ChangeValue(IPlayablePuzzleSquare square)
 {
 }
示例#7
0
 public SquareVM(IPlayablePuzzleSquare square)
 {
     this.square         = square;
     this.fillRectangle  = new FillRectangleCommand(this.square);
     this.emptyRectangle = new EmptyRectangleCommand(this.square);
 }
示例#8
0
 public SquareVM(IPlayablePuzzleSquare square)
 {
     this.square     = square;
     this.Press      = new ClickSquareCommand(this);
     this.PressRight = new ClickRightCommand(this);
 }
示例#9
0
 public SquareVM(IPlayablePuzzleSquare square)
 {
     Square = square;
     Click  = new ClickSquareCommand(this);
 }
示例#10
0
 public SquareViewModel(IPlayablePuzzleSquare square)
 {
     Square     = square;
     RightClick = new Right(this);
     LeftClick  = new Left(this);
 }
示例#11
0
 public SquareViewModel(IPlayablePuzzleSquare square)
 {
     this.Square = square;
     //Empty, filled of unknown
     this.State = new SquareStateCommand(this);
 }
示例#12
0
 public SquareViewModel(IPlayablePuzzleSquare square)
 {
     Square = square;
     ChangeSquareContent = new ChangeSquareContentsCommand();
     ContentRangeChanger = new ContentRangeChangerCommand();
 }
示例#13
0
 public EmptyRectangleCommand(IPlayablePuzzleSquare s)
 {
     this.square = s;
 }
示例#14
0
 public FillRectangleCommand(IPlayablePuzzleSquare square)
 {
     this.square = square;
 }
 public PlayablePuzzleSquareViewModel(IPlayablePuzzleSquare puzzleSquare)
 {
     this.PuzzleSquare = puzzleSquare;
     this.CycleCommand = new CycleCommand(this);
 }
示例#16
0
 public SquareViewModel(IPlayablePuzzleSquare playablePuzzleSquare)
 {
     this.Square = playablePuzzleSquare;
     this.Cycle  = new CycleCommand(this);
 }
 public ViewModelSquare(IPlayablePuzzleSquare square)
 {
     this._square     = square;
     this.FillSquare  = new EnabledCommand(() => square.Contents.Value = Square.FILLED);
     this.EmptySquare = new EnabledCommand(() => square.Contents.Value = Square.EMPTY);
 }
示例#18
0
 public SquareViewModel(IPlayablePuzzleSquare square)
 {
     this.square           = square;
     this.SquareLeftClick  = new SquareLeftClickCommand(this);
     this.SquareRightClick = new SquareRightClickCommand(this);
 }
示例#19
0
 public PuzzleSquareViewModel(IPlayablePuzzleSquare square)
 {
     this.playablePuzzleSquare = square;
     Mark = new ClickCommand(this);
 }