コード例 #1
0
        /// <summary>
        /// конструктор
        /// </summary>
        public PriceOscillatorUi(PriceOscillator pO)
        {
            InitializeComponent();
            _pO = pO;

            HostColorBase.Child           = new TextBox();
            HostColorBase.Child.BackColor = _pO.ColorBase;
            CheckBoxPaintOnOff.IsChecked  = _pO.PaintOn;

            ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Persent);
            ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Punkt);
            ComboBoxTypeSerch.SelectedItem = _pO.TypeSerch;
        }
コード例 #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        public PriceOscillatorUi(PriceOscillator pO)
        {
            InitializeComponent();
            _pO = pO;

            HostColorBase.Child           = new TextBox();
            HostColorBase.Child.BackColor = _pO.ColorBase;
            CheckBoxPaintOnOff.IsChecked  = _pO.PaintOn;

            ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Persent);
            ComboBoxTypeSerch.Items.Add(PriceOscillatorSerchType.Punkt);
            ComboBoxTypeSerch.SelectedItem = _pO.TypeSerch;

            ButtonColor.Content        = OsLocalization.Charts.LabelButtonIndicatorColor;
            CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content       = OsLocalization.Charts.LabelButtonIndicatorAccept;
            LabelIndicatorType.Content = OsLocalization.Charts.LabelIndicatorType;
        }