//struct CShapeUserDefinedStruct //{ // public int a; //} public Form1() { InitializeComponent(); _sign = ControlService.SignCombo.Current; _scheduleSaver = new ScheduleSaver { Sign = _sign }; LocalFilePathMapping.CreateDirectories(true); //CShapeUserDefinedStruct cc = new CShapeUserDefinedStruct(); //cc.a = 1; //List<string> b = new List<string>(); ////b.Sort( //SortedList<string, string> a = new SortedList<string, string>(); ////a.Add( ////IntPtr //Dictionary<string, string> c = new Dictionary<string, string>(); //c.OrderBy( }
public void Populate() { if (_item == null) { return; } _files.Clear(); _needUpdatedItems.Clear(); _deletedItems.Clear(); LocalFilePathMapping.CreateDirectories(true); CreateLibrary <SchedulerInfo>(_item); var messages = _item.Messages; var timeSliceGroups = _item.TimeSliceGroups; var playlists = _item.Playlists; if (messages != null && messages.Count > 0) { CreateLibrary <MessageInfo>(messages.ToArray()); } if (timeSliceGroups != null && timeSliceGroups.Count > 0) { CreateLibrary <TimeSliceGroupInfo>(timeSliceGroups.ToArray()); } if (playlists != null && playlists.Count > 0) { CreateLibrary <PlaylistInfo>(playlists.ToArray()); } List <UfeFile> deletedFiles = CreateDeleteSourceFiles(messages, timeSliceGroups, playlists); IsDeleteServerLibraries(deletedFiles); _files.ForEach(item => item.Populate()); }
public void Populate() { if (Item == null) { return; } _files.Clear(); _needUpdatedItems.Clear(); _deletedItems.Clear(); LocalFilePathMapping.CreateDirectories(true); var memoryLibs = Item.MemoryLibraries; CreateLibrary(memoryLibs); List <UfeFile> deletedFiles = CreateDeleteSourceFiles(memoryLibs); IsDeleteServerLibraries(deletedFiles); _files.ForEach(item => item.Populate()); }