예제 #1
0
        /// <summary>
        /// конструктор
        /// </summary>
        public AсUi(Ac ac)
        {
            InitializeComponent();
            _ac = ac;

            TextBoxLenght.Text           = _ac.LenghtLong.ToString();
            TextBoxLenghtAverage.Text    = _ac.LenghtShort.ToString();
            CheckBoxPaintOnOff.IsChecked = _ac.PaintOn;

            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = _ac.ColorUp;

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _ac.ColorDown;
        }
예제 #2
0
        /// <summary>
        /// конструктор
        /// </summary>
        public AcUi(Ac ac)
        {
            InitializeComponent();
            _ac = ac;

            TextBoxLenght.Text           = _ac.LenghtLong.ToString();
            TextBoxLenghtAverage.Text    = _ac.LenghtShort.ToString();
            CheckBoxPaintOnOff.IsChecked = _ac.PaintOn;

            HostColorUp.Child           = new TextBox();
            HostColorUp.Child.BackColor = _ac.ColorUp;

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _ac.ColorDown;

            ButtonColorUp.Content             = OsLocalization.Charts.LabelButtonIndicatorColorUp;
            ButtonColorDown.Content           = OsLocalization.Charts.LabelButtonIndicatorColorDown;
            CheckBoxPaintOnOff.Content        = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content              = OsLocalization.Charts.LabelButtonIndicatorAccept;
            LabelIndicatorLongPeriod.Content  = OsLocalization.Charts.LabelIndicatorLongPeriod;
            LabelIndicatorShortPeriod.Content = OsLocalization.Charts.LabelIndicatorShortPeriod;
        }