Пример #1
0
 public StratSimMyToolbar(WindowFlowPanel Parent, StratSimPanelControlEvents Events)
     : base(Parent, Events)
 {
     this.events = Events;
     MyEvents.FinishedLoadingParameters += OnPaceParametersFinishedLoading;
     MyEvents.FinishedLoadingStrategies += OnStrategiesFinishedLoading;
 }
Пример #2
0
        public MyToolbar(WindowFlowPanel parent)
        {
            SetupToolbar();
            windowFillStyle = FillStyles.FullWidth;
            autoSize        = AutosizeTypes.Constant;
            windowDockType  = DockTypes.TopLeft;

            _parent = parent;
            form    = _parent._parent;
            removed = true;

            type = typeof(MyToolbar);

            originalSize = this.Size;

            form.PanelAdded += OnPanelAdded;
            FlowLayoutEvents.MainPanelLayoutChanged += GetShownHiddenPanels;
            MyEvents.ShowToolStrip             += OnToolStripAdded;
            MyEvents.RemoveToolStrip           += OnToolStripRemoved;
            MyEvents.FinishedLoadingParameters += OnPaceParametersFinishedLoading;
            MyEvents.FinishedLoadingStrategies += OnStrategiesFinishedLoading;
        }