/// ##################################################################### /// <summary> /// 设置软件和左侧导航栏皮肤 /// coder:likai(2010-06-08) /// </summary> public static string SetSkinStyle() { StringBuilder sSkin = new StringBuilder(100); string sFilePath = Application.StartupPath + "\\Config\\DefaultLoadConfig.ini"; const string sSetion = "Skin"; const string sKey = "Skin"; const string missValue = "Whiteprint"; APIFunctions.GetPrivateProfileString(sSetion, sKey, missValue, sSkin, 100, sFilePath); if (sSkin.ToString() == string.Empty) { sSkin.Append(missValue); } switch (sSkin.ToString()) { case "DevExpress Style": return("DevExpress Style"); case "DevExpress Dark Style": return("DevExpress Dark Style"); case "Seven Classic": return("Seven Classic"); case "Office 2010 Black": return("Office 2010 Black"); case "Office 2010 Blue": return("Office 2010 Blue"); case "Office 2010 Silver": return("Office 2010 Silver"); case "Office 2013": return("Office 2013"); case "VS2010": return("VS2010"); case "Seven": return("Seven"); case "Darkroom": return("Darkroom"); case "Metropolis Dark": return("Metropolis Dark"); case "Foggy": return("Foggy"); case "Sharp": return("Sharp"); case "Whiteprint": return("Whiteprint"); } return(string.Empty); }