static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DevExpress.UserSkins.BonusSkins.Register(); DevExpress.UserSkins.OfficeSkins.Register(); DevExpress.Skins.SkinManager.EnableFormSkins(); //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(SystemInfo.SystemDefaultSkin); XmlOpt xc = new XmlOpt(); string skinName = xc.GetNodeValue("Skin"); //skinName = string.IsNullOrEmpty(skinName) ? SystemInfo.SystemDefaultSkin : skinName; DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(skinName); //DevExpress.UserSkins.BonusSkins.Register(); //DevExpress.Skins.SkinManager.EnableFormSkins(); //DevExpress.Skins.SkinManager.EnableMdiFormSkins(); //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS"); Application.Run(new frmLogin()); //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS"); }
private void SetCurrentSkinSelected() { string currentSkin = xc.GetNodeValue("Skin"); if (string.IsNullOrEmpty(currentSkin)) { return; } for (int i = 0; i < lstSkin.Items.Count; i++) { if (currentSkin.Equals(lstSkin.Items[i].ToString())) { this.lstSkin.SelectedIndex = i; break; } } }