コード例 #1
0
            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();
            }
コード例 #2
0
        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();
        }
コード例 #3
0
            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();
            }
コード例 #4
0
            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();
            }
コード例 #5
0
        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();
        }