コード例 #1
0
 public static void SelectTheme()
 {
     if (themeDialog == null)
     {
         themeDialog             = new ThemeDialog();
         themeDialog.FormClosed += OnThemeDialogClosed;
         themeDialog.Show();
     }
     else
     {
         themeDialog.Activate();
     }
 }
コード例 #2
0
        public static void SelectTheme()
        {
            if (themeDialog == null)
            {
                themeDialog             = new ThemeDialog();
                themeDialog.FormClosed += OnThemeDialogClosed;
                themeDialog.Show();
            }
            else
            {
                themeDialog.Activate();
            }

            if (importPaths.Count > 0)
            {
                List <string> tempImportPaths = new List <string>(importPaths.ToArray());
                importPaths.Clear();
                themeDialog.ImportThemes(tempImportPaths);
            }
        }