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

            TextBoxAf.Text            = _mA.Af.ToString();
            TextBoxMaxAf.Text         = _mA.MaxAf.ToString();
            HostColor.Child           = new TextBox();
            HostColor.Child.BackColor = _mA.ColorBase;

            CheckBoxPaintOnOff.IsChecked = _mA.PaintOn;

            ButtonColor.Content           = OsLocalization.Charts.LabelButtonIndicatorColor;
            CheckBoxPaintOnOff.Content    = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content          = OsLocalization.Charts.LabelButtonIndicatorAccept;
            LabelIndicatorStep.Content    = OsLocalization.Charts.LabelIndicatorStep;
            LabelIndicatorMaxStep.Content = OsLocalization.Charts.LabelIndicatorMaxStep;
        }
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="mA">индикатор для настройки</param>
        public ParabolicSarUi(ParabolicSaR mA)
        {
            InitializeComponent();
            _mA = mA;

            TextBoxAf.Text            = _mA.Af.ToString();
            TextBoxMaxAf.Text         = _mA.MaxAf.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;
        }