Example #1
0
        public void classMenu_Click(object sender, EventArgs e)
        {
            if (classForm == null)
            {
                classForm = new FormClass();
                classForm.MdiParent = this;
            }

            classForm.Show();
            classForm.BringToFront();
        }
Example #2
0
        public void PrepareForms()
        {
            if (classForm == null)
            {
                classForm = new FormClass();
                classForm.MdiParent = this;
            }

            classForm.FillListBox();

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

            weaponForm.FillListBox();

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

            armorForm.FillListBox();

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

            shieldForm.FillListBox();

            classToolMenu.Enabled = true;
            itemMenu.Enabled = true;
        }