Ejemplo n.º 1
0
        public EasyGridRadioButtonCell(DataGridView parent)
            : base()
        {
            _parent      = parent;
            _items       = new EasyGridRadioButtonCollection(this);
            _bigimages   = new List <Bitmap>();
            _smallimages = new List <Bitmap>();

            _bigimages.Add(Properties.Resources.Radio_Back);
            _bigimages.Add(Properties.Resources.RadioGreen);
            _bigimages.Add(Properties.Resources.RadioBlue);
            _bigimages.Add(Properties.Resources.RadioRed);
            _bigimages.Add(Properties.Resources.RadioOrange);
            _bigDisabeldImage = Properties.Resources.RadioDisabled;

            _smallimages.Add(Properties.Resources.Radio_Back_small);
            _smallimages.Add(Properties.Resources.RadioGreen_small);
            _smallimages.Add(Properties.Resources.RadioBlue_small);
            _smallimages.Add(Properties.Resources.RadioRed_small);
            _smallimages.Add(Properties.Resources.RadioOrange_small);
            _smallDisabeldImage = Properties.Resources.RadioDisabled_small;


            _images        = _bigimages;
            _disabledImage = _smallDisabeldImage;
            _info          = new CellSpanInfo(this);
        }
        public EasyGridRadioButtonCell(DataGridView parent)
            : base()
        {
            _parent      = parent;
            _items       = new EasyGridRadioButtonCollection(this);
            _bigimages   = new List <Bitmap>();
            _smallimages = new List <Bitmap>();

            _bigimages.Add(Properties.Resources.Radio_Back);
            _bigimages.Add(Properties.Resources.RadioGreen);
            _bigimages.Add(Properties.Resources.RadioBlue);
            _bigimages.Add(Properties.Resources.RadioRed);
            _bigimages.Add(Properties.Resources.RadioOrange);
            _bigDisabeldImage = Properties.Resources.RadioDisabled;

            _smallimages.Add(Properties.Resources.Radio_Back_small);
            _smallimages.Add(Properties.Resources.RadioGreen_small);
            _smallimages.Add(Properties.Resources.RadioBlue_small);
            _smallimages.Add(Properties.Resources.RadioRed_small);
            _smallimages.Add(Properties.Resources.RadioOrange_small);
            _smallDisabeldImage = Properties.Resources.RadioDisabled_small;

            _font = new Font(_font.FontFamily, 8.0f, FontStyle.Regular);

            _images        = _smallimages;
            _disabledImage = _smallDisabeldImage;
        }