/// ------------------------------------------------------------------------------------ /// <summary> /// Saves the size and location of the localization dialog box. /// </summary> /// ------------------------------------------------------------------------------------ static void LocalizeItemDlg_SetDialogBounds(LocalizeItemDlg dlg) { var rc = Settings.Default.LocalizationDlgBounds; if (rc.Height < 0) { dlg.StartPosition = FormStartPosition.CenterScreen; } else { dlg.Bounds = rc; } }
public static void ShowLocalizationDialogBox(string id) { TipDialog.Show("If you click on an item while you hold alt and shift keys down, this tool will open up with that item already selected."); LocalizeItemDlg <T> .ShowDialog(GetLocalizationManagerForString(id), id, false); }
internal static void ShowLocalizationDialogBox(IComponent component) { TipDialog.Show("If you click on an item while you hold alt and shift keys down, this tool will open up with that item already selected."); LocalizeItemDlg <T> .ShowDialog(GetLocalizationManagerForComponent(component), component, false); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Saves the size and location of the localization dialog box. /// </summary> /// ------------------------------------------------------------------------------------ private static void LocalizeItemDlg_SaveDialogBounds(LocalizeItemDlg dlg) { Settings.Default.LocalizationDlgBounds = dlg.Bounds; Settings.Default.Save(); }