Exemplo n.º 1
0
        public void SetCell(int column, IModuleUnlockTargetVM target)
        {
            this.CheckTerminated();

            if (column <= this.ColumnIndex)
            {
                throw new ArgumentOutOfRangeException("column");
            }

            this.ColumnIndex = column;

            if (target.Row == ModuleUnlockTargetVM.UndefinedRowOrColumn)
            {
                target.Row = this.Index;
            }

            if (target.Column == ModuleUnlockTargetVM.UndefinedRowOrColumn)
            {
                target.Column = column;
            }

            if (target.Row != this.Index)
            {
                throw new ArgumentException("target");
            }

            if (target.Column != column)
            {
                return;
            }

            _cells[column] = target;
        }
Exemplo n.º 2
0
 public UnlockInfoVM(IModuleUnlockTargetVM target, double experience)
 {
     this.Target     = target;
     this.Experience = experience;
 }
Exemplo n.º 3
0
 public void AppendCell(IModuleUnlockTargetVM target)
 {
     this.SetCell(this.ColumnIndex + 1, target);
 }