Ejemplo n.º 1
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="rvi">индикатор для настроек</param>
        public RviUi(Rvi rvi)
        {
            InitializeComponent();
            _rvi = rvi;

            TextBoxLenght.Text = _rvi.Period.ToString();

            HostColorBase.Child               = new TextBox();
            HostColorBaseCopy.Child           = new TextBox();
            HostColorBase.Child.BackColor     = _rvi.ColorDown;
            HostColorBaseCopy.Child.BackColor = _rvi.ColorUp;
            CheckBoxPaintOnOff.IsChecked      = _rvi.PaintOn;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="rvi">индикатор для настроек</param>
        public RviUi(Rvi rvi)
        {
            InitializeComponent();
            _rvi = rvi;

            TextBoxLenght.Text = _rvi.Period.ToString();

            HostColorBase.Child               = new TextBox();
            HostColorBaseCopy.Child           = new TextBox();
            HostColorBase.Child.BackColor     = _rvi.ColorDown;
            HostColorBaseCopy.Child.BackColor = _rvi.ColorUp;
            CheckBoxPaintOnOff.IsChecked      = _rvi.PaintOn;

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