internal static void ManageControl(Control control, String formName) { if (control.ContextMenuStrip != null) { LanguageUtil.CicleControls(formName, control.ContextMenuStrip.Items); } }
private void SetLanguage(bool isFormReloading) { LanguageUtil.SetCurrentLanguage(this, OptionManager.GetLanguage(this), isFormReloading); LanguageUtil.CicleControls(Name, browserContextMenuStrip.Items, OptionManager.GetLanguage(this)); LanguageUtil.CicleControls(Name, urlContextMenuStrip.Items, OptionManager.GetLanguage(this)); Width = Width + 1; Width = Width - 1; }
internal static void ManageControl(Control control, String formName) { CustomNumericUpDown controlCustomNumeric = ((CustomNumericUpDown)control); if (controlCustomNumeric.CustomContextMenuStrip != null) { LanguageUtil.CicleControls(formName, controlCustomNumeric.CustomContextMenuStrip.Items); } }
internal static void ManageControl(Control control, String formName, String culture) { TreeView controlTree = (TreeView)control; if (controlTree.Nodes.Count > 0) { LanguageUtil.CicleControls(formName, controlTree.Nodes, culture); } }
internal static void ManageControl(ToolStripItem item, String formName, String culture) { ToolStripMenuItem itemMenu = (ToolStripMenuItem)item; String localizedText = LanguageUtil.GetCurrentLanguageString(item.Name, formName, culture); if (!String.IsNullOrEmpty(localizedText)) { item.Text = localizedText; } if (itemMenu.DropDownItems.Count > 0) { LanguageUtil.CicleControls(formName, itemMenu.DropDownItems, culture); } }
internal static void ManageControl(TreeNode item, String formName) { String localized = LanguageUtil.GetCurrentLanguageString(item.Name, formName); if (!String.IsNullOrEmpty(localized)) { item.Text = LanguageUtil.GetCurrentLanguageString(item.Name, formName); } if (item.ContextMenuStrip != null) { LanguageUtil.CicleControls(formName, item.ContextMenuStrip.Items); } if (item.Nodes.Count > 0) { LanguageUtil.CicleControls(formName, item.Nodes); } }
internal static void ManageControl(Control control, String formName, String culture) { String localized = LanguageUtil.GetCurrentLanguageString(control.Name, formName, culture); if (!String.IsNullOrEmpty(localized)) { control.Text = localized; } if (control.Controls.Count > 0) { LanguageUtil.CicleControls(formName, control.Controls, culture); } if (control.ContextMenuStrip != null) { LanguageUtil.CicleControls(formName, control.ContextMenuStrip.Items, culture); } }
internal static void ManageControl(Control control, String formName) { if (control.ContextMenuStrip != null) { LanguageUtil.CicleControls(formName, control.ContextMenuStrip.Items); } String items = LanguageUtil.GetCurrentLanguageString(String.Format("{0}Items", control.Name), formName); if (String.IsNullOrEmpty(items)) { return; } String[] itemsSplitted = items.Split(new[] { Environment.NewLine }, StringSplitOptions.None); ComboBox controlCombo = (ComboBox)control; for (int i = 0; i < controlCombo.Items.Count; i++) { controlCombo.Items[i] = itemsSplitted[i]; } }
internal static void ManageControl(ToolStripItem item, String formName, String culture) { ToolStripDropDownButton itemDropDownButton = (ToolStripDropDownButton)item; String localizedText = LanguageUtil.GetCurrentLanguageString(itemDropDownButton.Name, formName, culture); if (!String.IsNullOrEmpty(localizedText)) { itemDropDownButton.Text = localizedText; } localizedText = LanguageUtil.GetCurrentLanguageString(String.Format("{0}ToolTip", itemDropDownButton.Name), formName, culture); if (!String.IsNullOrEmpty(localizedText)) { itemDropDownButton.ToolTipText = localizedText; } if (itemDropDownButton.HasDropDownItems) { LanguageUtil.CicleControls(formName, itemDropDownButton.DropDownItems, culture); } }
internal static void ManageControl(Control control, String formName, String culture) { TabPage controlTabPage = (TabPage)control; controlTabPage.Text = LanguageUtil.GetCurrentLanguageString(controlTabPage.Name, formName, culture); if (controlTabPage.Controls.Count > 0) { LanguageUtil.CicleControls(formName, controlTabPage.Controls, culture); } if (controlTabPage.ContextMenuStrip != null) { LanguageUtil.CicleControls(formName, controlTabPage.ContextMenuStrip.Items, culture); } String toolTip = LanguageUtil.GetCurrentLanguageString(String.Format("{0}ToolTip", controlTabPage.Name), formName, culture); if (!String.IsNullOrEmpty(toolTip)) { controlTabPage.ToolTipText = toolTip; } }
internal static void ManageControl(Control control, String formName, bool isFormReloading) { XtraTabPage controlTabPage = (XtraTabPage)control; controlTabPage.Text = LanguageUtil.GetCurrentLanguageString(controlTabPage.Name, formName); if (controlTabPage.Controls.Count > 0) { LanguageUtil.CicleControls(formName, controlTabPage.Controls, isFormReloading); } if (controlTabPage.ContextMenuStrip != null) { LanguageUtil.CicleControls(formName, controlTabPage.ContextMenuStrip.Items); } String toolTip = LanguageUtil.GetCurrentLanguageString(String.Format("{0}ToolTip", controlTabPage.Name), formName); if (!String.IsNullOrEmpty(toolTip)) // && !isFormReloading) { controlTabPage.Tooltip = toolTip; } }
internal void SetLanguage() { LanguageUtil.SetCurrentLanguage(this); LanguageUtil.CicleControls(Name, searchInFilesContextMenuStrip.Items); //LanguageUtil.CicleControls(Name, infoPanel.Controls, false); }
internal static void ManageControl(Control control, String formName) { MenuStrip controlMenu = (MenuStrip)control; LanguageUtil.CicleControls(formName, controlMenu.Items); }
private void SetLanguage() { LanguageUtil.SetCurrentLanguage(this); LanguageUtil.CicleControls(Name, customContextMenuStrip.Items); addNewColumnToolStripTextBox.Text = LanguageUtil.GetCurrentLanguageString("addNewColumnToolStripTextBox", Name); }
internal static void ManageControl(Control control, String formName, bool isFormReloading) { control.Text = LanguageUtil.GetCurrentLanguageString(control.Name, formName); LanguageUtil.CicleControls(formName, control.Controls, isFormReloading); }
internal static void ManageControl(Control control, String formName, String culture) { control.Text = LanguageUtil.GetCurrentLanguageString(control.Name, formName, culture); LanguageUtil.CicleControls(formName, control.Controls, culture); }
internal void SetLanguage() { LanguageUtil.SetCurrentLanguage(this); LanguageUtil.CicleControls(Name, fileContextMenuStrip.Items); LanguageUtil.CicleControls(Name, directoryContextMenuStrip.Items); }
private void SetLanguage() { LanguageUtil.SetCurrentLanguage(this); LanguageUtil.CicleControls(Name, textMenuStrip.Items); }
internal static void ManageControl(Control control, String formName, String culture) { LanguageUtil.CicleControls(formName, control.Controls, culture); }
internal void SetLanguage() { LanguageUtil.SetCurrentLanguage(this); LanguageUtil.CicleControls(Name, clipboardContextMenuStrip.Items); }
internal static void ManageControl(Control control, String formName, String culture) { StatusStrip controlMenu = (StatusStrip)control; LanguageUtil.CicleControls(formName, controlMenu.Items, culture); }
internal static void ManageControl(Control control, String formName, bool isFormReloading) { LanguageUtil.CicleControls(formName, control.Controls, isFormReloading); }