Esempio n. 1
0
        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        public MacdHistogramUi(MacdHistogram macd)
        {
            InitializeComponent();
            _macd = macd;

            HostColorUp.Child            = new TextBox();
            HostColorUp.Child.BackColor  = _macd.ColorUp;
            CheckBoxPaintOnOff.IsChecked = _macd.PaintOn;

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _macd.ColorDown;

            ButtonColorUp.Content      = OsLocalization.Charts.LabelButtonIndicatorColorUp;
            ButtonColorDown.Content    = OsLocalization.Charts.LabelButtonIndicatorColorDown;
            CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content       = OsLocalization.Charts.LabelButtonIndicatorAccept;
        }