コード例 #1
0
        private void LoadTheme(Theme theme)
        {
            ThemeCreator themeCreator = new ThemeCreator(theme);

            themeCreator.Show(tabControl_Main);
            themeCreator.ThemeChanged     += new EventHandler(ThemeChanged);
            themeCreator.ThemeNameChanged += new EventHandler(ThemeNameChanged);
            SelectedDocument = theme;
        }
コード例 #2
0
        private Theme CreateTheme()
        {
            ThemeCreator themeCreator = new ThemeCreator();

            themeCreator.Show(tabControl_Main);
            themeCreator.ThemeChanged     += new EventHandler(ThemeChanged);
            themeCreator.ThemeNameChanged += new EventHandler(ThemeNameChanged);
            SelectedDocument = themeCreator.GetTheme();
            return(themeCreator.GetTheme());
        }