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 classesToolStripMenuItem_Click(object sender, EventArgs e) { if (frmClasses == null) { frmClasses = new FormClasses(); frmClasses.MdiParent = this; } frmClasses.Show(); frmClasses.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 ClassesMenuItemClick(object sender, EventArgs e) { if (_classForm == null) _classForm = new FormClasses {MdiParent = this}; _classForm.Show(); _classForm.BringToFront(); }