Example #1
0
        private void InitializeCustomStyles()
        {
            var serverTemplist = serviceHandler.CallService <List <CustomStyle> >(@"QueryCustomStyles");
            var localTempList  = dataHandler.QueryCustomStyles();


            if (serverTemplist != null && localTempList != null)
            {
                if (serverTemplist.Count != localTempList.Count)
                {
                    dataHandler.ClearCustomStyles();
                    foreach (var item in serverTemplist)
                    {
                        dataHandler.InsertCustomStyle(item);
                    }
                }
            }
        }