public DataInputCharacterScreenClass()
        {
            InitializeComponent();
            Model            = new CharacterModel();
            ModelofCharacter = new CharacterModel[Constant.MaxLevels];
            ModelofFeatType  = new FeatTypeModel();
            FeatTypeNames    = FeatTypeModel.GetNames();

            CharacterLevels = CharacterModel.GetLevels();

            LevelDataHasChanged = new bool[Constant.MaxLevels];
            for (int i = 1; i <= Constant.MaxLevels; i++)
            {
                ModelofCharacter[i - 1] = new CharacterModel();
                ModelofCharacter[i - 1].Intialize(i);
            }

            PopulateFeatTypeChoiceList();
            PopulateFields();

            autoGrantedFeatsPanel1.Initialize("Character", Guid.Empty);

            for (int i = 0; i < Constant.MaxLevels; i++)
            {
                LevelDataHasChanged[i] = false;
            }
        }
Пример #2
0
 private void PopulateFeatTypeCheckedListBox()
 {
     FeatTypeNames = FeatTypeModel.GetNames();
     foreach (string name in FeatTypeNames)
     {
         FeatTypesCheckedListBox.Items.Add(name);
     }
 }
Пример #3
0
        private void PopulateBonusFeatChoiceComboBoxesList()
        {
            string   controlName;
            ComboBox controlBox;

            FeatTypeNames = FeatTypeModel.GetNames();
            for (int i = 1; i <= Constant.NumHeroicLevels; i++)
            {
                controlName = "BonusFeatChoiceCombo" + i;
                controlBox  = (ComboBox)this.LevelDetailsPanel.Controls[controlName];
                controlBox.Items.Add("");
                foreach (string name in FeatTypeNames)
                {
                    controlBox.Items.Add(name);
                }
            }
        }
        public DataInputClassScreenClass()
        {
            string   controlName;
            ComboBox bonusFeatTypeCombo;

            AllowChangeEvents = false;

            InitializeComponent();
            Model      = new ClassModel();
            ClassNames = ClassModel.GetNames();
            foreach (string Name in ClassNames)
            {
                ClassListBox.Items.Add(Name);
            }

            FeatTypeNames = FeatTypeModel.GetNames();

            //selections for the bonus feat box selectors
            for (int i = 1; i <= Constant.NumHeroicLevels; i++)
            {
                controlName        = "BonusFeatComboBox" + i;
                bonusFeatTypeCombo = Controls[controlName] as ComboBox;
                bonusFeatTypeCombo.Items.Add("");
                foreach (string Name in FeatTypeNames)
                {
                    bonusFeatTypeCombo.Items.Add(Name);
                }
            }

            PopulateFields(ClassNames[0]);
            ClassListBox.SelectedIndex = 0;

            AutoGrantedFeatsPanel.Initialize("Class", Model.Id);
            DataHasChanged = false;

            AllowChangeEvents = true;
        }