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 armorToolStripMenuItem_Click(object sender, EventArgs e) { if (frmArmor == null) { frmArmor = new FormArmor(); frmArmor.MdiParent = this; } frmArmor.Show(); frmArmor.BringToFront(); }
public void armorMenu_Click(object sender, EventArgs e) { if (armorForm == null) { armorForm = new FormArmor(); armorForm.MdiParent = this; } armorForm.Show(); armorForm.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; }
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; }
private void ArmorMenuItemClick(object sender, EventArgs e) { if (_armorForm == null) _armorForm = new FormArmor {MdiParent = this}; _armorForm.Show(); _armorForm.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; }