void IDeviceSpecificDesigner.InitHeader(int mergingContext) { _mergedUI = new MergedUI(); _mergedUI.LblStyles.Text = SR.GetString(SR.StyleSheet_StylesCaption); _mergedUI.LblStyles.TabIndex = 1; _mergedUI.CbStyles.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; _mergedUI.CbStyles.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedStylesComboBox); _mergedUI.CbStyles.TabIndex = 2; _mergedUI.CbStyles.Sorted = true; _mergedUI.BtnEdit.Text = SR.GetString(SR.Stylesheet_EditBtnCaption); _mergedUI.BtnEdit.Click += new EventHandler(this.OnClickEditStylesButton); _mergedUI.BtnEdit.TabIndex = 3; switch (mergingContext) { case MobileControlDesigner.MergingContextTemplates: { _mergedUI.LblHeader.Text = SR.GetString(SR.StyleSheet_SettingTemplatingStyleChoiceDescription); // AUI 2730 _mergedUI.CbStyles.Width = 195; _mergedUI.BtnEdit.Location = new System.Drawing.Point(201, 39); break; } default: { _mergedUI.LblHeader.Text = SR.GetString(SR.StyleSheet_SettingGenericStyleChoiceDescription); // AUI 2730 _mergedUI.CbStyles.Width = 195; _mergedUI.BtnEdit.Location = new System.Drawing.Point(201, 39); break; } } }
void IDeviceSpecificDesigner.InitHeader(int mergingContext) { _mergedUI = new MergedUI(); _mergedUI.LblStyles.Text = SR.GetString(SR.StyleSheet_StylesCaption); _mergedUI.LblStyles.TabIndex = 1; _mergedUI.CbStyles.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; _mergedUI.CbStyles.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedStylesComboBox); _mergedUI.CbStyles.TabIndex = 2; _mergedUI.CbStyles.Sorted = true; _mergedUI.BtnEdit.Text = SR.GetString(SR.Stylesheet_EditBtnCaption); _mergedUI.BtnEdit.Click += new EventHandler(this.OnClickEditStylesButton); _mergedUI.BtnEdit.TabIndex = 3; switch (mergingContext) { case MobileControlDesigner.MergingContextTemplates: { _mergedUI.LblHeader.Text = SR.GetString(SR.StyleSheet_SettingTemplatingStyleChoiceDescription); // AUI 2730 _mergedUI.CbStyles.Width = 195; _mergedUI.BtnEdit.Location = new System.Drawing.Point(201, 39); break; } default: { _mergedUI.LblHeader.Text = SR.GetString(SR.StyleSheet_SettingGenericStyleChoiceDescription); // AUI 2730 _mergedUI.CbStyles.Width = 195; _mergedUI.BtnEdit.Location = new System.Drawing.Point(201, 39); break; } } }