Example #1
0
        private void PrepareForms()
        {
            if (frmClasses == null)
            {
                frmClasses           = new FormClasses();
                frmClasses.MdiParent = this;
            }

            frmClasses.FillListBox();

            if (frmArmor == null)
            {
                frmArmor           = new FormArmor();
                frmArmor.MdiParent = this;
            }

            frmArmor.FillListBox();

            if (frmShield == null)
            {
                frmShield           = new FormShield();
                frmShield.MdiParent = this;
            }

            frmShield.FillListBox();

            if (frmWeapon == null)
            {
                frmWeapon           = new FormWeapon();
                frmWeapon.MdiParent = this;
            }

            frmWeapon.FillListBox();

            if (frmKey == null)
            {
                frmKey           = new FormKey();
                frmKey.MdiParent = this;
            }

            frmKey.FillListBox();

            if (frmChest == null)
            {
                frmChest           = new FormChest();
                frmChest.MdiParent = this;
            }

            frmChest.FillListBox();

            classesToolStripMenuItem.Enabled = true;
            itemsToolStripMenuItem.Enabled   = true;
            keysToolStripMenuItem.Enabled    = true;
            chestsToolStripMenuItem.Enabled  = true;
        }
Example #2
0
        void classesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmClasses == null)
            {
                frmClasses           = new FormClasses();
                frmClasses.MdiParent = this;
            }

            frmClasses.Show();
            frmClasses.BringToFront();
        }
Example #3
0
        private void PrepareForms()
        {
            if (frmClasses == null)
            {
                frmClasses = new FormClasses();
                frmClasses.MdiParent = this;
            }

            frmClasses.FillListBox();

            if (frmArmor == null)
            {
                frmArmor = new FormArmor();
                frmArmor.MdiParent = this;
            }

            frmArmor.FillListBox();

            if (frmShield == null)
            {
                frmShield = new FormShield();
                frmShield.MdiParent = this;
            }

            frmShield.FillListBox();

            if (frmWeapon == null)
            {
                frmWeapon = new FormWeapon();
                frmWeapon.MdiParent = this;
            }

            frmWeapon.FillListBox();

            if (frmKey == null)
            {
                frmKey = new FormKey();
                frmKey.MdiParent = this;
            }

            frmKey.FillListBox();

            if (frmChest == null)
            {
                frmChest = new FormChest();
                frmChest.MdiParent = this;
            }

            frmChest.FillListBox();

            if (frmSkill == null)
            {
                frmSkill = new FormSkill();
                frmSkill.MdiParent = this;
            }

            frmSkill.FillListBox();

            classesToolStripMenuItem.Enabled = true;
            itemsToolStripMenuItem.Enabled = true;
            keysToolStripMenuItem.Enabled = true;
            chestsToolStripMenuItem.Enabled = true;
            skillsToolStripMenuItem.Enabled = true;
        }
Example #4
0
        void classesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmClasses == null)
            {
                frmClasses = new FormClasses();
                frmClasses.MdiParent = this;
            }

            frmClasses.Show();
            frmClasses.BringToFront();
        }
Example #5
0
        private void PrepareForms()
        {
            if (_classForm == null)
                _classForm = new FormClasses {MdiParent = this};

            _classForm.LoadClasses();

            if (_armorForm == null)
                _armorForm = new FormArmor {MdiParent = this};

            _armorForm.LoadArmor();

            if (_shieldsForm == null)
                _shieldsForm = new FormShields {MdiParent = this};

            _shieldsForm.LoadShields();

            if (_weaponsForm == null)
                _weaponsForm = new FormWeapons {MdiParent = this};

            _weaponsForm.LoadWeapons();

            if (_keysForm == null)
                _keysForm = new FormKeys {MdiParent = this};

            _keysForm.LoadKeys();

            if (_containersForm == null)
                _containersForm = new FormContainers {MdiParent = this};

            _containersForm.LoadContainers();

            if (_skillsForm == null)
                _skillsForm = new FormSkills {MdiParent = this};

            _skillsForm.LoadSkills();

            ExportMenuItem.Enabled = true;
            ClassesMenuItem.Enabled = true;
            ItemsMenuItem.Enabled = true;
            KeysMenuItem.Enabled = true;
            ContainersMenuItem.Enabled = true;
            SkillsMenuItem.Enabled = true;
        }
Example #6
0
        private void ClassesMenuItemClick(object sender, EventArgs e)
        {
            if (_classForm == null)
                _classForm = new FormClasses {MdiParent = this};

            _classForm.Show();
            _classForm.BringToFront();
        }