public void oniteminkempty(object obj, PrinterEventArgs e)
 {
     if (e.crit)
     {
         // Currentprinter.AddInk();
         if (e.crit)
         {
             queue.Enqueue(queue.Dequeue());
         }
     }
     MessageBox.Show(e.ToString(), "Error");
 }
 public void onitempagesmissing(object obj, PrinterEventArgs e)
 {
     MessageBox.Show(e.ToString(), "Error");
     Currentprinter.AddPages();
     queue.Enqueue(queue.Dequeue());
 }