private void OnChange() { if (_OldTheme != SelectSlides[htSelectSlides(SelectSlideTheme)].Selection) { CConfig.Theme = CTheme.ThemeNames[SelectSlides[htSelectSlides(SelectSlideTheme)].Selection]; _OldTheme = SelectSlides[htSelectSlides(SelectSlideTheme)].Selection; CTheme.UnloadSkins(); CFonts.UnloadThemeFonts(CConfig.Theme); CTheme.ListSkins(); CConfig.Skin = CTheme.SkinNames[0]; _OldSkin = 0; _TempSkin = _OldSkin; CConfig.SaveConfig(); CTheme.LoadSkins(); CTheme.LoadTheme(); CGraphics.ReloadTheme(); OnShow(); OnShowFinish(); return; } if (_TempSkin != SelectSlides[htSelectSlides(SelectSlideSkin)].Selection) { _TempSkin = SelectSlides[htSelectSlides(SelectSlideSkin)].Selection; PauseBG(); CConfig.Skin = CTheme.SkinNames[_TempSkin]; CGraphics.ReloadSkin(); ResumeBG(); } }
private void _OnChange() { if (CConfig.Config.Theme.Theme != _SelectSlides[_SelectSlideTheme].SelectedValue) { CConfig.Config.Theme.Theme = _SelectSlides[_SelectSlideTheme].SelectedValue; CThemes.Reload(); CGraphics.ReloadTheme(); _ResetSlides(); _ResumeBG(); return; } if (CConfig.Config.Theme.Skin != _SelectSlides[_SelectSlideSkin].SelectedValue) { CConfig.Config.Theme.Skin = _SelectSlides[_SelectSlideSkin].SelectedValue; CThemes.ReloadSkin(); CGraphics.ReloadSkin(); _ResetSlides(); _ResumeBG(); } }