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

            TextBoxLenght.Text        = _mA.Lenght.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;
            LabelIndicatorPeriod.Content = OsLocalization.Charts.LabelIndicatorPeriod;
        }
Example #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="mA">индикатор для настройки</param>
        public CciUi(Cci 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;
        }