コード例 #1
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="mA">индикатор для настройки</param>
        public VolumeOscillatorUi(VolumeOscillator mA)
        {
            InitializeComponent();
            _mA = mA;

            TextBoxLenght1.Text       = _mA.Lenght1.ToString();
            TextBoxLenght2.Text       = _mA.Lenght2.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;
            LabelIndicatorPeriod1.Content = OsLocalization.Charts.LabelIndicatorPeriod + " 1";
            LabelIndicatorPeriod2.Content = OsLocalization.Charts.LabelIndicatorPeriod + " 2";
        }
コード例 #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="mA">индикатор для настройки</param>
        public VolumeOscillatorUi(VolumeOscillator mA)
        {
            InitializeComponent();
            _mA = mA;

            TextBoxLenght1.Text       = _mA.Lenght1.ToString();
            TextBoxLenght2.Text       = _mA.Lenght2.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;
        }