/// <summary> /// Handler for a context menu item click on a skill. /// Add the entire skill queue to a plan. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void tsmiCreatePlanFromSkillQueue_Click(object sender, EventArgs e) { if (Character == null) { return; } // Create new plan Plan newPlan = PlanWindow.CreateNewPlan(Character, EveMonConstants.CurrentSkillQueueText); if (newPlan == null) { return; } // Add skill queue to new plan and insert it on top of the plans bool planCreated = PlanIOHelper.CreatePlanFromCharacterSkillQueue(newPlan, Character); // Show the editor for this plan if (planCreated) { PlanWindow.ShowPlanWindow(plan: newPlan); } }
/// <summary> /// Shows the selected skill in Skill Browser. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void showInSkillBrowserMenuItem_Click(object sender, EventArgs e) { // Open the skill browser PlanWindow.ShowPlanWindow(Character).ShowSkillInBrowser(m_selectedSkill); }