/// <summary> /// Repaints the strategy slots /// </summary> /// <param name="strategy">The strategy</param> public void RepaintStrategyControls(Strategy strategy) { _strategy = strategy; _slots = strategy.Slots; FlowLayoutStrategy.SuspendLayout(); foreach (ContextPanel pnl in SlotPanelsList) { pnl.Invalidate(); } PanelProperties.Invalidate(); FlowLayoutStrategy.ResumeLayout(); }
/// <summary> /// Rebuilds all the controls in panel Strategy /// </summary> public void RebuildStrategyControls(Strategy strategy) { _strategy = strategy; _slots = strategy.Slots; FlowLayoutStrategy.SuspendLayout(); FlowLayoutStrategy.Controls.Clear(); InitializeStrategySlots(); ArrangeStrategyControls(); if (ShowAddSlotButtons) { SetAddSlotButtons(); } FlowLayoutStrategy.ResumeLayout(); }
/// <summary> /// Rearranges all controls in panel Strategy /// </summary> public void RearangeStrategyControls() { FlowLayoutStrategy.SuspendLayout(); ArrangeStrategyControls(); FlowLayoutStrategy.ResumeLayout(); }
/// <summary> /// Arranges the controls after resizing /// </summary> protected override void OnResize(EventArgs eventargs) { FlowLayoutStrategy.SuspendLayout(); ArrangeStrategyControls(); FlowLayoutStrategy.ResumeLayout(); }