Exemplo n.º 1
0
        public void SaveDefaultQueue()
        {
            List <PrintItem>    partList = CreateReadOnlyPartList();
            ManifestFileHandler manifest = new ManifestFileHandler(partList);

            manifest.ExportToJson();
        }
Exemplo n.º 2
0
        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));
                }
            }
        }
Exemplo n.º 3
0
        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));
                }
            }
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
		public void SaveDefaultQueue()
		{
			List<PrintItem> partList = CreateReadOnlyPartList();
			ManifestFileHandler manifest = new ManifestFileHandler(partList);
			manifest.ExportToJson();
		}
Exemplo n.º 6
0
		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();
		}