private void InitializeWrappings() { var serverTemplist = serviceHandler.CallService <List <Wrapping> >(@"QueryWrappings"); var localTempList = dataHandler.QueryWrappings(); if (serverTemplist != null && localTempList != null) { if (serverTemplist.Count != localTempList.Count) { dataHandler.ClearWrappings(); foreach (var item in serverTemplist) { dataHandler.InsertWrapping(item); } } } }