Ejemplo n.º 1
0
        /// <summary>
        /// конструктор
        /// </summary>
        /// <param name="indicator">индикатор который будем редактировать</param>
        public KalmanFilterUi(KalmanFilter indicator)
        {
            InitializeComponent();
            _indicator = indicator;

            TextBoxSharpness.Text = _indicator.Sharpness.ToString();
            TextBoxK.Text         = _indicator.K.ToString();

            HostColorBase.Child           = new TextBox();
            HostColorBase.Child.BackColor = _indicator.ColorBase;

            CheckBoxPaintOnOff.IsChecked = _indicator.PaintOn;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// constructor
        /// конструктор
        /// </summary>
        /// <param name="indicator">configuration indicator/индикатор который будем редактировать</param>
        public KalmanFilterUi(KalmanFilter indicator)
        {
            InitializeComponent();
            _indicator = indicator;

            TextBoxSharpness.Text = _indicator.Sharpness.ToString();
            TextBoxK.Text         = _indicator.K.ToString();

            HostColorBase.Child           = new TextBox();
            HostColorBase.Child.BackColor = _indicator.ColorBase;

            CheckBoxPaintOnOff.IsChecked = _indicator.PaintOn;

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