private void ShieldsMenuItemClick(object sender, EventArgs e) { if (_shieldsForm == null) _shieldsForm = new FormShields {MdiParent = this}; _shieldsForm.Show(); _shieldsForm.BringToFront(); }
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; }