Exemplo n.º 1
0
        /// <summary>
        /// конструктор
        /// </summary>
        public BullsPowerUi(BullsPower bp)
        {
            InitializeComponent();
            _bp = bp;

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

            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = bp.ColorUp;

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

            CheckBoxPaintOnOff.IsChecked = _bp.PaintOn;
        }
Exemplo n.º 2
0
        /// <summary>
        /// конструктор
        /// </summary>
        public BullsPowerUi(BullsPower bp)
        {
            InitializeComponent();
            _bp = bp;

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

            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = bp.ColorUp;

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

            CheckBoxPaintOnOff.IsChecked = _bp.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;
        }