/// <summary> /// Initializes a new instance of the <see cref="AttributesOptimizerOptionsWindow"/> class. /// Constructor used in WindowsFactory. /// </summary> /// <param name="planEditorControl">The plan editor control.</param> /// <exception cref="System.ArgumentNullException">planEditorControl</exception> public AttributesOptimizerOptionsWindow(PlanEditorControl planEditorControl) : this() { planEditorControl.ThrowIfNull(nameof(planEditorControl)); buttonWholePlan.Font = FontFactory.GetFont("Microsoft Sans Serif", 10F); buttonCharacter.Font = FontFactory.GetFont("Microsoft Sans Serif", 10F); buttonRemappingPoints.Font = FontFactory.GetFont("Microsoft Sans Serif", 10F); m_planEditorControl = planEditorControl; }
/// <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(); }