Exemple #1
0
        /// <summary>
        /// Same as AddJob, but deletes all other pending jobs first.
        /// </summary>
        /// <param name="code"></param>
        /// <param name="path"></param>
        /// <param name="BBShallBeWritten"></param>
        /// <param name="DocumentID"></param>
        /// <param name="InitialLineOffset"></param>
        public void AddJobExclusive(string code, string path, bool BBShallBeWritten, long DocumentID = 0, int InitialLineOffset=0)
        {
            Job job = new Job();
            job.code = code;
            job.path = path;
            job.BBShallBeWritten = BBShallBeWritten;
            job.CreateBMP = false;
            job.WriteCode = true;
            job.DocumentID = DocumentID;

            if (InitialLineOffset > 0)
                job.AddOffset(1, InitialLineOffset);

            AddJobExclusive(job);
        }