internal void InitSelection(CalendarCellModel cellModel)
        {
            this.selectOperation = new SelectOperation(cellModel);
            this.UpdateCellsIsSelectedFlags(this.selectOperation.CurrentSelectedRange, true);

            this.RefreshModifiedCells();
        }
Beispiel #2
0
        internal void StartSelection(Point lastPointSelected)
        {
            var cellModel = this.Owner.GetCellModelByPoint(lastPointSelected);

            if (cellModel != null)
            {
                this.selectOperation = new SelectOperation(cellModel);
                this.UpdateCellsIsSelectedFlags(this.selectOperation.CurrentSelectedRange, true);

                this.RefreshModifiedCells();
            }
        }
Beispiel #3
0
        internal void EndSelection(bool success)
        {
            if (success)
            {
                this.CommitSelectOperation(this.selectOperation.CurrentSelectedRange);
            }
            else
            {
                //// TODO: clear visuals refresh selected ones and update UI.
            }

            this.selectOperation = null;
        }