internal void InitSelection(CalendarCellModel cellModel) { this.selectOperation = new SelectOperation(cellModel); this.UpdateCellsIsSelectedFlags(this.selectOperation.CurrentSelectedRange, true); this.RefreshModifiedCells(); }
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(); } }
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; }