예제 #1
0
        /// <summary>
        /// конструктор
        /// </summary>
        public MacdLineUi(MacdLine macd)
        {
            InitializeComponent();
            _macd = macd;

            HostColorUp.Child             = new TextBox();
            HostColorUp.Child.BackColor   = _macd.ColorUp;
            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _macd.ColorDown;
            CheckBoxPaintOnOff.IsChecked  = _macd.PaintOn;
        }
예제 #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        public MacdLineUi(MacdLine macd)
        {
            InitializeComponent();
            _macd = macd;

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

            ButtonColorMacd.Content       = OsLocalization.Charts.LabelButtonIndicatorColorUp;
            ButtonColorSignalLine.Content = OsLocalization.Charts.LabelButtonIndicatorColorDown;
            CheckBoxPaintOnOff.Content    = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content          = OsLocalization.Charts.LabelButtonIndicatorAccept;
        }