コード例 #1
0
        /// ------------------------------------------------------------------------------------
        /// <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;
            }
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 /// ------------------------------------------------------------------------------------
 /// <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();
 }