예제 #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;
        }
예제 #2
0
        void weaponToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmWeapon == null)
            {
                frmWeapon           = new FormWeapon();
                frmWeapon.MdiParent = this;
            }

            frmWeapon.Show();
            frmWeapon.BringToFront();
        }
예제 #3
0
        void weaponsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmWeapon == null)
            {
                frmWeapon = new FormWeapon();
                frmWeapon.MdiParent = this;
            }

            frmWeapon.Show();
            frmWeapon.BringToFront();
        }
예제 #4
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;
        }
예제 #5
0
        public void weaponMenu_Click(object sender, EventArgs e)
        {
            if (weaponForm == null)
            {
                weaponForm = new FormWeapon();
                weaponForm.MdiParent = this;
            }

            weaponForm.Show();
            weaponForm.BringToFront();
        }
예제 #6
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;
        }