public void UpdatePref() { try { List <skPreference> PreferanceList = new List <skPreference>(); PreferanceList.Add(new skPreference { Code = "MAINTOOLCO", Value = ToolBarColour, Name = "Main ToolBar" }); UP.UpdatePreferenceList(PreferanceList); } catch (Exception E) { ExepionLogger.Logger.LogException(E); ExepionLogger.Logger.Show(E); } }