Ejemplo n.º 1
0
        private void comboBoxCellTypes_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBoxCellTypes.SelectedIndex != -1)
            {
                //WARNING: modify this as you add ground and entities...
                if (comboBoxCellTypes.SelectedIndex < 3)
                {
                    rbActiveGround.Checked = true;
                }
                else
                {
                    rbActiveEntities.Checked = true;
                }

                int a = comboBoxCellTypes.SelectedIndex;
                current                 = GetBrush(a);
                txtAttributes.Text      = current.attributes;
                cbIncrementAttr.Checked = false;
            }
        }
Ejemplo n.º 2
0
        private void comboBoxCellTypes_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBoxCellTypes.SelectedIndex != -1)
            {
                //WARNING: modify this as you add ground and entities...
                if (comboBoxCellTypes.SelectedIndex < 3)
                    rbActiveGround.Checked = true;
                else
                    rbActiveEntities.Checked = true;

                int a = comboBoxCellTypes.SelectedIndex;
                current = GetBrush(a);
                txtAttributes.Text = current.attributes;
                cbIncrementAttr.Checked = false;
            }
        }