Esempio n. 1
0
        /// <summary>
        /// конструктор
        /// </summary>
        public EnvelopsUi(Envelops envelops)
        {
            InitializeComponent();
            _envelops = envelops;

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

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _envelops.ColorDown;
            TextBoxDeviation.Text         = _envelops.Deviation.ToString(new CultureInfo("ru-RU"));
            CheckBoxPaintOnOff.IsChecked  = _envelops.PaintOn;
        }
Esempio n. 2
0
        /// <summary>
        /// конструктор
        /// </summary>
        public EnvelopsUi(Envelops envelops)
        {
            InitializeComponent();
            _envelops = envelops;

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

            HostColorDown.Child           = new TextBox();
            HostColorDown.Child.BackColor = _envelops.ColorDown;
            TextBoxDeviation.Text         = _envelops.Deviation.ToString(new CultureInfo("ru-RU"));
            CheckBoxPaintOnOff.IsChecked  = _envelops.PaintOn;

            ButtonColorUp.Content           = OsLocalization.Charts.LabelButtonIndicatorColorUp;
            ButtonColorDown.Content         = OsLocalization.Charts.LabelButtonIndicatorColorDown;
            CheckBoxPaintOnOff.Content      = OsLocalization.Charts.LabelPaintIntdicatorIsVisible;
            ButtonAccept.Content            = OsLocalization.Charts.LabelButtonIndicatorAccept;
            LabelIndicatorDeviation.Content = OsLocalization.Charts.LabelIndicatorDeviation;
            ButtonMa.Content = OsLocalization.Charts.LabelIndicatorSettingsSma;
        }