Example #1
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="mA">индикатор для настройки</param>
        public StandardDeviationUi(StandardDeviation mA)
        {
            InitializeComponent();
            _mA = mA;

            TextBoxLenght.Text        = _mA.Lenght.ToString();
            HostColor.Child           = new TextBox();
            HostColor.Child.BackColor = _mA.ColorBase;

            CheckBoxPaintOnOff.IsChecked = _mA.PaintOn;
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Open);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.High);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Low);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Close);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Median);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Typical);

            ComboBoxPriceField.SelectedItem = _mA.TypePointsToSearch;

            ButtonColor.Content                   = OsLocalization.Charts.LabelButtonIndicatorColor;
            CheckBoxPaintOnOff.Content            = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content                  = OsLocalization.Charts.LabelButtonIndicatorAccept;
            LabelIndicatorPeriod.Content          = OsLocalization.Charts.LabelIndicatorPeriod;
            LabelIndicatorCandlePriceType.Content = OsLocalization.Charts.LabelIndicatorCandlePriceType;
        }
Example #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="mA">индикатор для настройки</param>
        public StandardDeviationUi(StandardDeviation mA)
        {
            InitializeComponent();
            _mA = mA;

            TextBoxLenght.Text        = _mA.Lenght.ToString();
            HostColor.Child           = new TextBox();
            HostColor.Child.BackColor = _mA.ColorBase;

            CheckBoxPaintOnOff.IsChecked = _mA.PaintOn;
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Open);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.High);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Low);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Close);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Median);
            ComboBoxPriceField.Items.Add(StandardDeviationTypePoints.Typical);

            ComboBoxPriceField.SelectedItem = _mA.TypePointsToSearch;
        }