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; }
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()); }