Пример #1
0
        private FsEntriesDataGridRowMtbl GetFsEntriesDataGridRowMtbl(IFsItem fsItem, int idx)
        {
            var rowMtbl = new FsEntriesDataGridRowMtbl
            {
                Data     = fsItem,
                RowIndex = idx
            };

            return(rowMtbl);
        }
Пример #2
0
        private void ClearCurrentRow(bool unMarkPrevCurrent = true)
        {
            SetDataGridRowBackColor(
                CurrentRowIndex,
                () => CurrentRow.IsChecked ? dataGridCellCheckedBackColor : dataGridCellBackColor,
                () => unMarkPrevCurrent);

            CurrentRowIndex = -1;
            CurrentRow      = null;

            CurrentCellIndex = 0;
            CurrentCell      = FsEntriesGridColumn.SelectEntry;
        }
Пример #3
0
        private void SetCurrentRow(
            int currentRowIndex,
            int currentCellIndex,
            bool unMarkPrevCurrent = true)
        {
            FsEntriesGridColumn fsEntriesGridColumn = (FsEntriesGridColumn)currentCellIndex;

            var isDifferentRow = SetDataGridRowBackColor(
                CurrentRowIndex,
                () => CurrentRow.IsChecked ? dataGridCellCheckedBackColor : dataGridCellBackColor,
                () => unMarkPrevCurrent && currentRowIndex != CurrentRowIndex);

            CurrentRowIndex = currentRowIndex;
            CurrentRow      = EditableDataGridValueRows[currentRowIndex];

            CurrentCellIndex = currentCellIndex;
            CurrentCell      = fsEntriesGridColumn;

            SetDataGridRowBackColor(
                currentRowIndex,
                () => CurrentRow.IsChecked ? dataGridCellCheckedCurrentBackColor : dataGridCellCurrentBackColor,
                () => true);
        }