/// <summary> /// Initializes a new instance of the <see cref="AttributesOptimizerWindow"/> class. /// Constructor used in WindowsFactory. /// </summary> /// <param name="planEditorControl">The plan editor control.</param> /// <param name="strategy">Optimization strategy</param> /// <exception cref="System.ArgumentNullException">planEditorControl</exception> public AttributesOptimizerWindow(PlanEditorControl planEditorControl, AttributeOptimizationStrategy strategy) : this() { planEditorControl.ThrowIfNull(nameof(planEditorControl)); m_planEditor = planEditorControl; m_plan = planEditorControl.Plan; m_character = (Character)m_plan.Character; m_baseCharacter = m_character.After(m_plan.ChosenImplantSet); m_strategy = strategy; // Update title and description UpdateTitle(); }
/// <summary> /// Initializes a new instance of the <see cref="AttributesOptimizerWindow"/> class. /// Constructor used in WindowsFactory. /// </summary> /// <param name="planEditorControl">The plan editor control.</param> /// <param name="strategy">Optimization strategy</param> /// <exception cref="System.ArgumentNullException">planEditorControl</exception> public AttributesOptimizerWindow(PlanEditorControl planEditorControl, AttributeOptimizationStrategy strategy) : this() { planEditorControl.ThrowIfNull(nameof(planEditorControl)); m_planEditor = planEditorControl; m_plan = planEditorControl.Plan; m_character = (Character)m_plan.Character; m_baseCharacter = m_character.After(m_plan.ChosenImplantSet); m_strategy = strategy; // Update title and description UpdateTitle(); }