/// <summary> /// конструктор /// </summary> /// <param name="eR">индикатор для настроек</param> public EfficiencyRatioUi(EfficiencyRatio eR) { InitializeComponent(); _eR = eR; TextBoxLenght.Text = _eR.Lenght.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _eR.ColorBase; CheckBoxPaintOnOff.IsChecked = _eR.PaintOn; }
/// <summary> /// конструктор /// </summary> /// <param name="eR">индикатор для настроек</param> public EfficiencyRatioUi(EfficiencyRatio eR) { InitializeComponent(); _eR = eR; TextBoxLenght.Text = _eR.Lenght.ToString(); HostColorBase.Child = new TextBox(); HostColorBase.Child.BackColor = _eR.ColorBase; CheckBoxPaintOnOff.IsChecked = _eR.PaintOn; ButtonColor.Content = OsLocalization.Charts.LabelButtonIndicatorColor; CheckBoxPaintOnOff.Content = OsLocalization.Charts.LabelPaintIntdicatorIsVisible; ButtonAccept.Content = OsLocalization.Charts.LabelButtonIndicatorAccept; LabelIndicatorPeriod.Content = OsLocalization.Charts.LabelIndicatorPeriod; }