Beispiel #1
0
        private void AddFsEntriesGridImageCellToDictnr(
            Dictionary <FsEntriesGridColumn, DataGridViewCell> rowCellsDictnr,
            FsEntriesGridColumn fsEntriesGridColumn,
            Bitmap cellImage)
        {
            var cell = new DataGridViewImageCell();

            cell.Value = cellImage;

            rowCellsDictnr.Add(fsEntriesGridColumn, cell);
        }
Beispiel #2
0
        private void AddFsEntriesGridCheckBoxCellToDictnr(
            Dictionary <FsEntriesGridColumn, DataGridViewCell> rowCellsDictnr,
            FsEntriesGridColumn fsEntriesGridColumn,
            bool isChecked)
        {
            var cell = new DataGridViewCheckBoxCell();

            cell.Value = isChecked;

            rowCellsDictnr.Add(fsEntriesGridColumn, cell);
        }
Beispiel #3
0
        private void AddFsEntriesGridTextCellToDictnr(
            Dictionary <FsEntriesGridColumn, DataGridViewCell> rowCellsDictnr,
            FsEntriesGridColumn fsEntriesGridColumn,
            string cellText)
        {
            var cell = new DataGridViewTextBoxCell();

            cell.Value = cellText;

            rowCellsDictnr.Add(fsEntriesGridColumn, cell);
        }
Beispiel #4
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);
        }