private void SetupCells() { _poolCheckBoxCell = new DataGridViewCheckBoxCell { ThreeState = true }; _expansionCell = new DataGridViewImageCell(); if (Tag is Pool || (Tag is Host && !_hasPool)) { _poolIconHostCheckCell = new DataGridViewIconCell(); } else { _poolIconHostCheckCell = new DataGridViewCheckBoxCell(); } _nameCell = new DataGridViewNameCell(); _versionCell = new DataGridViewTextBoxCell(); Cells.AddRange(new[] { _expansionCell, _poolCheckBoxCell, _poolIconHostCheckCell, _nameCell, _versionCell }); this.UpdateDetails(); }
private void SetupCells() { _poolCheckBoxCell = new DataGridViewCheckBoxCell { ThreeState = true, TrueValue = CheckState.Checked, FalseValue = CheckState.Unchecked, IndeterminateValue = CheckState.Indeterminate, }; _nameCell = new DataGridViewNameCell(); Cells.AddRange(_expansionCell, _poolCheckBoxCell, _nameCell); SetupAdditionalDetailsColumns(); UpdateDetails(); }
private void SetupCells() { _poolCheckBoxCell = new DataGridViewCheckBoxCell { ThreeState = true }; if (IsPoolOrStandaloneHost) { _poolIconHostCheckCell = new DataGridViewIconCell(); } else { _poolIconHostCheckCell = new DataGridViewCheckBoxCell(); } _nameCell = new DataGridViewNameCell(); _versionCell = new DataGridViewTextBoxCell(); Cells.AddRange(_expansionCell, _poolCheckBoxCell, _poolIconHostCheckCell, _nameCell, _versionCell); this.UpdateDetails(); }
private void SetupCells() { _poolCheckBoxCell = new DataGridViewCheckBoxCell { ThreeState = true }; _expansionCell = new DataGridViewImageCell(); if (Tag is Pool || (Tag is Host && !_hasPool)) _poolIconHostCheckCell = new DataGridViewIconCell(); else _poolIconHostCheckCell = new DataGridViewCheckBoxCell(); _nameCell = new DataGridViewNameCell(); _versionCell = new DataGridViewTextBoxCell(); Cells.AddRange(new[] { _expansionCell, _poolCheckBoxCell, _poolIconHostCheckCell, _nameCell, _versionCell }); this.UpdateDetails(); }
private void SetupCells() { _poolCheckBoxCell = new DataGridViewCheckBoxCell { ThreeState = true, TrueValue = CheckState.Checked, FalseValue = CheckState.Unchecked, IndeterminateValue = CheckState.Indeterminate, }; _expansionCell = new DataGridViewImageCell(); _nameCell = new DataGridViewNameCell(); Cells.Add(_expansionCell); Cells.Add(_poolCheckBoxCell); Cells.Add(_nameCell); SetupAdditionalDetailsColumns(); UpdateDetails(); }