Ejemplo n.º 1
0
        private void MapFile(ZillaLabel zLabel)
        {
            foreach (ZillaConfig zCFG in zCFGList)
            {
                if (zLabel.Mapping == zCFG.ComboBoxIndex && zCFG.AmountDummy != zCFG.Amount)
                {
                    // If file already exists, it won't be overwritten, and there is no prompt for overwriting
                    try
                    {
                        File.Copy(globalDataSetPath + "\\" +
                                  zLabel.Path, globallabelRealOutputFolder +
                                  "\\" + zCFG.FolderName + "\\" +
                                  zLabel.Path.Split('\\').Last());

                        sortedFiles++;
                        zCFG.AmountDummy++;
                    }
                    catch (Exception ex) { Console.WriteLine(ex); }

                    bgWorker.ReportProgress(sortedFiles);
                }
            }

            CheckIsProcessingFinished();
        }
Ejemplo n.º 2
0
        private void ProcessLine(string[] tokLine)
        {
            ZillaLabel zLabel = new ZillaLabel(tokLine[0], int.Parse(tokLine[1]));

            MapFile(zLabel);
        }