示例#1
0
            public IndicatorEntry(RamIndicatorBase indicator)
            {
                Indicator = indicator;

                Bounds = Rectangle.Empty;

                LeftBar   = Rectangle.Empty;
                RightBar  = Rectangle.Empty;
                TopBar    = Rectangle.Empty;
                BottomBar = Rectangle.Empty;
            }
示例#2
0
        public void AddIndicator(RamIndicatorBase indicator)
        {
            if (indicator == null)
            {
                throw new ArgumentNullException("indicator");
            }

            _indicators.Add(new IndicatorEntry(indicator));

            // By adding a new indicator the layout of the plot needs an update
            _setBounds(Width, Height);
        }