/// <summary>
        /// Constructor
        /// </summary>
        public Top10Layout(int maxStrategies)
        {
            _toolTip = new ToolTip();

            _maxStrategies = maxStrategies;
            BackColor      = LayoutColors.ColorControlBack;

            _top10Holder = new SortableDictionary <int, Top10StrategyInfo>();

            FlowLayoutStrategy = new FlowLayoutPanel();
            VScrollBarStrategy = new VScrollBar();

            // FlowLayoutStrategy
            FlowLayoutStrategy.Parent     = this;
            FlowLayoutStrategy.AutoScroll = false;
            FlowLayoutStrategy.BackColor  = LayoutColors.ColorControlBack;

            // VScrollBarStrategy
            VScrollBarStrategy.Parent  = this;
            VScrollBarStrategy.TabStop = true;
            VScrollBarStrategy.Scroll += VScrollBarScroll;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public Top10Layout(int maxStrategies)
        {
            _toolTip = new ToolTip();

            _maxStrategies = maxStrategies;
            BackColor = LayoutColors.ColorControlBack;

            _top10Holder = new SortableDictionary<int, Top10StrategyInfo>();

            FlowLayoutStrategy = new FlowLayoutPanel();
            VScrollBarStrategy = new VScrollBar();

            // FlowLayoutStrategy
            FlowLayoutStrategy.Parent = this;
            FlowLayoutStrategy.AutoScroll = false;
            FlowLayoutStrategy.BackColor = LayoutColors.ColorControlBack;

            // VScrollBarStrategy
            VScrollBarStrategy.Parent = this;
            VScrollBarStrategy.TabStop = true;
            VScrollBarStrategy.Scroll += VScrollBarScroll;
        }
Beispiel #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Top10Layout(int maxStrategies)
        {
            toolTip = new ToolTip();

            this.maxStrategies = maxStrategies;
            this.BackColor     = LayoutColors.ColorControlBack;

            top10Holder = new SortableDictionary <int, Top10StrategyInfo>();

            flowLayoutStrategy = new FlowLayoutPanel();
            VScrollBarStrategy = new VScrollBar();

            // FlowLayoutStrategy
            flowLayoutStrategy.Parent     = this;
            flowLayoutStrategy.AutoScroll = false;
            flowLayoutStrategy.BackColor  = LayoutColors.ColorControlBack;

            //VScrollBarStrategy
            VScrollBarStrategy.Parent  = this;
            VScrollBarStrategy.TabStop = true;
            VScrollBarStrategy.Scroll += new ScrollEventHandler(VScrollBar_Scroll);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public Top10Layout(int maxStrategies)
        {
            toolTip = new ToolTip();

            this.maxStrategies = maxStrategies;
            this.BackColor = LayoutColors.ColorControlBack;

            top10Holder = new SortableDictionary<int,Top10StrategyInfo>();

            flowLayoutStrategy = new FlowLayoutPanel();
            VScrollBarStrategy = new VScrollBar();

            // FlowLayoutStrategy
            flowLayoutStrategy.Parent = this;
            flowLayoutStrategy.AutoScroll = false;
            flowLayoutStrategy.BackColor = LayoutColors.ColorControlBack;

            //VScrollBarStrategy
            VScrollBarStrategy.Parent = this;
            VScrollBarStrategy.TabStop = true;
            VScrollBarStrategy.Scroll += new ScrollEventHandler(VScrollBar_Scroll);
        }
 private void InitChartData()
 {
     chartData = new SortableDictionary<int, HistogramData>();
     minIndex = int.MaxValue;
     maxIndex = int.MinValue;
     maxCount = 0;
     maxAbsTotal = 0;
     maxTotal = double.MinValue;
 }