public void SaveDefaultQueue() { List <PrintItem> partList = CreateReadOnlyPartList(); ManifestFileHandler manifest = new ManifestFileHandler(partList); manifest.ExportToJson(); }
public void LoadDefaultQueue() { RemoveAll(); ManifestFileHandler manifest = new ManifestFileHandler(null); List <PrintItem> partFiles = manifest.ImportFromJson(); if (partFiles != null) { foreach (PrintItem item in partFiles) { AddItem(new PrintItemWrapper(item)); } } }
public void LoadDefaultQueue() { RemoveAllChildren(); ManifestFileHandler manifest = new ManifestFileHandler(null); List <PrintItem> partFiles = manifest.ImportFromJson(); if (partFiles != null) { foreach (PrintItem part in partFiles) { PrintQueueControl.Instance.AddChild(new PrintQueueItem(part.Name, part.FileLocation)); } } }
public void LoadDefaultQueue() { RemoveAll(); ManifestFileHandler manifest = new ManifestFileHandler(null); List <PrintItem> partFiles = manifest.ImportFromJson(); if (partFiles != null) { foreach (PrintItem item in partFiles) { AddItem(new PrintItemWrapper(item), -1, QueueData.ValidateSizeOn32BitSystems.Skip); } } RemoveAllSdCardFiles(); }
public void SaveDefaultQueue() { List<PrintItem> partList = CreateReadOnlyPartList(); ManifestFileHandler manifest = new ManifestFileHandler(partList); manifest.ExportToJson(); }
public void LoadDefaultQueue() { RemoveAll(); ManifestFileHandler manifest = new ManifestFileHandler(null); List<PrintItem> partFiles = manifest.ImportFromJson(); if (partFiles != null) { foreach (PrintItem item in partFiles) { AddItem(new PrintItemWrapper(item), -1, QueueData.ValidateSizeOn32BitSystems.Skip); } } RemoveAllSdCardFiles(); }