/// <summary> /// Updates the opened windows. /// </summary> /// <param name="value">The value.</param> private void UpdateOpenedWindows(Plan value) { // If the EFTLoadoutImportationForm is open, assign the new plan // We do the check here as we need to catch the previous plan value LoadoutImportationWindow eftloadoutImportation = WindowsFactory.GetByTag <LoadoutImportationWindow, Character>(m_character); if (eftloadoutImportation != null) { eftloadoutImportation.Plan = value; } // If the ShipLoadoutSelectWindow is open, assign the new plan ShipLoadoutSelectWindow loadoutSelect = WindowsFactory.GetByTag <ShipLoadoutSelectWindow, Character>(m_character); if (loadoutSelect != null) { loadoutSelect.Plan = value; } // If the SkillExplorerWindow is open, assign the new plan SkillExplorerWindow skillExplorer = WindowsFactory.GetByTag <SkillExplorerWindow, Character>(m_character); if (skillExplorer != null) { skillExplorer.Plan = value; } }
/// <summary> /// Context menu > Show "skill" in explorer. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void showInExplorerMenu_Click(object sender, EventArgs e) { Skill skill = ((SkillLevel)treeView.SelectedNode?.Tag)?.Skill; // Open the skill explorer SkillExplorerWindow.ShowSkillExplorerWindow(m_character, m_plan).ShowSkillInExplorer(skill); }
/// <summary> /// Context menu > Show "skill" in explorer. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void showInExplorerMenu_Click(object sender, EventArgs e) { var skillTag = treeView.SelectedNode?.Tag as SkillLevel; if (skillTag != null) { // Open the skill explorer SkillExplorerWindow.ShowSkillExplorerWindow(m_character, m_plan). ShowSkillInExplorer(skillTag.Skill); } }
/// <summary> /// Toolbar > Show what this skills enables... /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void showSkillExplorerMenu_Click(object sender, EventArgs e) { // Open the skill explorer SkillExplorerWindow.ShowSkillExplorerWindow(skillSelectControl.Character, m_plan). ShowSkillInExplorer(m_selectedSkill); }