예제 #1
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="bollinger">индикатор который мы будем настраивать</param>
        public BollingerUi(Bollinger bollinger)
        {
            InitializeComponent();
            _bollinger = bollinger;

            TextBoxDeviation.Text = _bollinger.Deviation.ToString();

            TextBoxLenght.Text          = _bollinger.Lenght.ToString();
            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = _bollinger.ColorUp;

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _bollinger.ColorDown;
            CheckBoxPaintOnOff.IsChecked  = _bollinger.PaintOn;
        }
예제 #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="bollinger">индикатор который мы будем настраивать</param>
        public BollingerUi(Bollinger bollinger)
        {
            InitializeComponent();
            _bollinger = bollinger;

            for (int i = 2; i < 4; i++)
            {
                ComboBoxDeviation.Items.Add(i);
            }

            ComboBoxDeviation.SelectedItem = _bollinger.Deviation;

            TextBoxLenght.Text          = _bollinger.Lenght.ToString();
            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = _bollinger.ColorUp;

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _bollinger.ColorDown;
            CheckBoxPaintOnOff.IsChecked  = _bollinger.PaintOn;
        }
예제 #3
0
        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        /// <param name="bollinger">configuration indicator/индикатор который мы будем настраивать</param>
        public BollingerUi(Bollinger bollinger)
        {
            InitializeComponent();
            _bollinger = bollinger;

            TextBoxDeviation.Text = _bollinger.Deviation.ToString();

            TextBoxLenght.Text          = _bollinger.Lenght.ToString();
            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = _bollinger.ColorUp;

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _bollinger.ColorDown;
            CheckBoxPaintOnOff.IsChecked  = _bollinger.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;
            LabelIndicatorDeviation.Content = OsLocalization.Charts.LabelIndicatorDeviation;
        }