Beispiel #1
0
 /// <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();
 }
Beispiel #2
0
 /// <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();
 }
Beispiel #3
0
 /// <summary>
 /// Rearranges all controls in panel Strategy
 /// </summary>
 public void RearangeStrategyControls()
 {
     FlowLayoutStrategy.SuspendLayout();
     ArrangeStrategyControls();
     FlowLayoutStrategy.ResumeLayout();
 }
Beispiel #4
0
 /// <summary>
 /// Arranges the controls after resizing
 /// </summary>
 protected override void OnResize(EventArgs eventargs)
 {
     FlowLayoutStrategy.SuspendLayout();
     ArrangeStrategyControls();
     FlowLayoutStrategy.ResumeLayout();
 }