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