Ejemplo n.º 1
0
        private void SetControlValues()
        {
            txtHero.Text            = _info.Hero;
            txtChild.Text           = _info.Child;
            spinBehavior.Value      = _info.Behavior;
            spinID.Value            = _info.GameID;
            chkLinked.Active        = _info.IsLinkedGame;
            chkHeros.Active         = _info.IsHeroQuest;
            chkFreeRingGiven.Active = _info.WasGivenFreeRing;
            cmbAnimal.SetActiveText(_info.Animal.ToString());

            if (_info.Game == Game.Ages)
            {
                rdoAges.Active = true;
            }
            else
            {
                rdoSeasons.Active = true;
            }

            if (_info.Region == GameRegion.JP)
            {
                rdoJP.Active = true;
            }
            else if (_info.Region == GameRegion.US)
            {
                rdoUS.Active = true;
            }

            foreach (RingTreeNode node in _ringStore.OfType <RingTreeNode>())
            {
                node.IsChecked = (_info.Rings & node.RingValue) == node.RingValue;
            }
            nvRings.QueueDraw();
        }