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

            TextBoxPeriodOne.Text   = _ishimoku.LenghtFirst.ToString();
            TextBoxPerionTwo.Text   = _ishimoku.LenghtSecond.ToString();
            TextBoxPerionThree.Text = _ishimoku.LenghtFird.ToString();
            TextBoxShift.Text       = _ishimoku.LenghtSdvig.ToString();
            TextBoxChinkou.Text     = _ishimoku.LenghtChinkou.ToString();

            HostLineLate.Child           = new TextBox();
            HostLineLate.Child.BackColor = _ishimoku.ColorLineLate;

            HostEtalonLine.Child           = new TextBox();
            HostEtalonLine.Child.BackColor = _ishimoku.ColorEtalonLine;

            HostLineRounded.Child           = new TextBox();
            HostLineRounded.Child.BackColor = _ishimoku.ColorLineRounded;

            HostColorFirst.Child           = new TextBox();
            HostColorFirst.Child.BackColor = _ishimoku.ColorLineFirst;

            HostColorSecond.Child           = new TextBox();
            HostColorSecond.Child.BackColor = _ishimoku.ColorLineSecond;


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

            TextBoxPeriodOne.Text   = _ishimoku.LenghtFirst.ToString();
            TextBoxPerionTwo.Text   = _ishimoku.LenghtSecond.ToString();
            TextBoxPerionThree.Text = _ishimoku.LenghtFird.ToString();
            TextBoxShift.Text       = _ishimoku.LenghtSdvig.ToString();
            TextBoxChinkou.Text     = _ishimoku.LenghtChinkou.ToString();

            HostLineLate.Child           = new TextBox();
            HostLineLate.Child.BackColor = _ishimoku.ColorLineLate;

            HostEtalonLine.Child           = new TextBox();
            HostEtalonLine.Child.BackColor = _ishimoku.ColorEtalonLine;

            HostLineRounded.Child           = new TextBox();
            HostLineRounded.Child.BackColor = _ishimoku.ColorLineRounded;

            HostColorFirst.Child           = new TextBox();
            HostColorFirst.Child.BackColor = _ishimoku.ColorLineFirst;

            HostColorSecond.Child           = new TextBox();
            HostColorSecond.Child.BackColor = _ishimoku.ColorLineSecond;


            CheckBoxPaintOnOff.IsChecked = _ishimoku.PaintOn;

            CheckBoxPaintOnOff.Content      = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content            = OsLocalization.Charts.LabelButtonIndicatorAccept;
            ButtonEtalonLine.Content        = OsLocalization.Charts.LabelButtonIndicatorColor;
            ButtonLineLate.Content          = OsLocalization.Charts.LabelButtonIndicatorColor;
            ButtonLineRounded.Content       = OsLocalization.Charts.LabelButtonIndicatorColor;
            ButtonFirst.Content             = OsLocalization.Charts.LabelButtonIndicatorColor;
            ButtonSecond.Content            = OsLocalization.Charts.LabelButtonIndicatorColor;
            LabelIndicatorDeviation.Content = OsLocalization.Charts.LabelIndicatorDeviation;
        }