/// <summary>Constructor</summary> /// <param name="param">Parameter set</param> /// <param name="BehavePosition">Position of behave</param> public EditTextBehaveForm(HJS.ECU.Parameter.ParameterSet param, int BehavePosition) { InitializeComponent(); mParam = param; lsuc = new Controls.LanguageStringUserControl[param.GetUsedLanguages()]; for (int i = 0; i < param.GetUsedLanguages(); i++) { lsuc[i] = new Controls.LanguageStringUserControl(param.GetLanguageId(i)); lsuc[i].Dock = DockStyle.Fill; flowLayoutPanelStrings.Controls.Add(lsuc[i]); } numericUpDownPosition.Value = BehavePosition; numericUpDownPosition_ValueChanged(null, EventArgs.Empty); }
/// <summary>Constructor</summary> /// <param name="param">Parameter set</param> /// <param name="ValuePosition">Position of value</param> public EditTextValueForm(HJS.ECU.Parameter.ParameterSet param, int ValuePosition) { InitializeComponent(); mParam = param; mFirmware = new HJS.ECU.Firmware(param.GetConfigCompatibility()); numericUpDownPosition.Maximum = mFirmware.GetValueNumber(); lvuc = new Controls.LanguageValueUserControl[param.GetUsedLanguages()]; tp = new TabPage[param.GetUsedLanguages()]; for (int i = 0; i < param.GetUsedLanguages(); i++) { lvuc[i] = new Controls.LanguageValueUserControl(); lvuc[i].Dock = DockStyle.Fill; //lvuc[i]. inhalt tp[i] = new TabPage(param.GetLanguageId(i)); tp[i].Controls.Add(lvuc[i]); tabControlText.TabPages.Add(tp[i]); } tabControlText.SelectedTab = tp[0]; numericUpDownPosition.Value = ValuePosition; numericUpDownPosition_ValueChanged(null, EventArgs.Empty); }