예제 #1
0
        /// <summary>
        /// 스타일 변경 이벤트
        /// </summary>
        /// <param name="eType"></param>
        public void StyleChange(Const.StyleType eType)
        {
            switch (eType)
            {
            case Const.StyleType.Black:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Black;
                break;

            case Const.StyleType.White:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.White;
                break;

            case Const.StyleType.Silver:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Silver;
                break;

            case Const.StyleType.Blue:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Blue;
                break;

            case Const.StyleType.Green:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Green;
                break;

            case Const.StyleType.Lime:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Lime;
                break;

            case Const.StyleType.Teal:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Teal;
                break;

            case Const.StyleType.Orange:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Orange;
                break;

            case Const.StyleType.Brown:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Brown;
                break;

            case Const.StyleType.Pink:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Pink;
                break;

            case Const.StyleType.Magenta:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Magenta;
                break;

            case Const.StyleType.Purple:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Purple;
                break;

            case Const.StyleType.Red:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Red;
                break;

            case Const.StyleType.Yellow:
                ctrlMainThemeMgr.Style = MetroFramework.MetroColorStyle.Yellow;
                break;
            }

            foreach (TileStruct tileStruct in mTileList)
            {
                tileStruct.RefreshButton();
            }

            Style = ctrlMainThemeMgr.Style;
        }
예제 #2
0
        /// <summary>
        /// 스타일 변경 이벤트
        /// </summary>
        /// <param name="eType"></param>
        public void StyleChange(Const.StyleType eType)
        {
            switch (eType)
            {
            case Const.StyleType.Black:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Black;
                break;

            case Const.StyleType.White:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.White;
                break;

            case Const.StyleType.Silver:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Silver;
                break;

            case Const.StyleType.Blue:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Blue;
                break;

            case Const.StyleType.Green:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Green;
                break;

            case Const.StyleType.Lime:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Lime;
                break;

            case Const.StyleType.Teal:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Teal;
                break;

            case Const.StyleType.Orange:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Orange;
                break;

            case Const.StyleType.Brown:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Brown;
                break;

            case Const.StyleType.Pink:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Pink;
                break;

            case Const.StyleType.Magenta:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Magenta;
                break;

            case Const.StyleType.Purple:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Purple;
                break;

            case Const.StyleType.Red:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Red;
                break;

            case Const.StyleType.Yellow:
                ctrlSettingsThemeMgr.Style = MetroFramework.MetroColorStyle.Yellow;
                break;
            }

            Style = ctrlSettingsThemeMgr.Style;
        }