Ejemplo n.º 1
0
        public static void Print()
        {
            Log.Write.Info("Batch Print Job Started.");

            BatchReference.BatchPrintButtonReference.Enabled = false;

            FilePrint.Process(GetDrawings(), BatchReference.BatchDataGridReference.RowCount);

            StatusBar.UpdateBatch("Print Complete.");
            SetConfirmed(false);
        }
Ejemplo n.º 2
0
 public static void PreProcess()
 {
     // If printing is in process, skip the printing processes from spawning again.
     if (!IsPrinting)
     {
         if ((MainReference.DataGridReference.AreAllCellsSelected(true)) && (!DataGrid.SelectionLessThanOrEqual(10, MainReference.DataGridReference)))
         {
             MessageBoxes.TooManyFilesSelected("Print Error");
         }
         else if (!DataGrid.SelectionLessThanOrEqual(10, MainReference.DataGridReference))
         {
             MessageBoxes.TooManyFilesSelected("Print Error");
         }
         else
         {
             IsPrinting = true;
             FilePrint.Process(DataGrid.GetSelectedDrawings(MainReference.DataGridReference), DataGrid.CountOfSelection(MainReference.DataGridReference));
         }
     }
 }