void barManagerSkins_ItemClick(object sender, ItemClickEventArgs e) { foreach (LinkPersistInfo item in barSubItem2.LinksPersistInfo) { item.Item.Enabled = true; } BarSubItem subMenu = e.Item as BarSubItem; if (subMenu != null) { return; } { using (SAController ctrlSA = new SAController()) { List <string> values = new List <string>(); values.Add(e.Item.Caption.ToString()); ctrlSA.ExecuteChangeSkins(values); } e.Item.Enabled = false; } App.Environment.GetCurrentUserProfile(); ThemeUtils.ChangeSkin(App.Environment.ClientInfo.UserProfile.ApplicationSkinName); }