Esempio n. 1
0
        /// <summary>
        /// 테마 변경 이벤트
        /// </summary>
        /// <param name="eType">테마 타입</param>
        public void ThemeChange(Const.ThemeType eType)
        {
            switch (eType)
            {
            case Const.ThemeType.Light:
                ctrlSettingsThemeMgr.Theme = MetroFramework.MetroThemeStyle.Light;
                break;

            case Const.ThemeType.Dark:
                ctrlSettingsThemeMgr.Theme = MetroFramework.MetroThemeStyle.Dark;
                break;
            }

            Theme = ctrlSettingsThemeMgr.Theme;
        }
Esempio n. 2
0
        /// <summary>
        /// 테마 변경 이벤트
        /// </summary>
        /// <param name="eType">테마 타입</param>
        public void ThemeChange(Const.ThemeType eType)
        {
            switch (eType)
            {
            case Const.ThemeType.Light:
                ctrlMainThemeMgr.Theme = MetroFramework.MetroThemeStyle.Light;
                break;

            case Const.ThemeType.Dark:
                ctrlMainThemeMgr.Theme = MetroFramework.MetroThemeStyle.Dark;
                break;
            }

            foreach (TileStruct tileStruct in mTileList)
            {
                tileStruct.MainThemeType = eType;
            }

            Theme = ctrlMainThemeMgr.Theme;
        }