예제 #1
0
 private void addExisting_ToolStripButton_Click(object sender, EventArgs e)
 {
     using (ExistingQueueForm form = new ExistingQueueForm())
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             _printQueues.Add(form.PrintQueue);
             _printQueueRows.Add(new LocalPrintQueueRow(form.PrintQueue));
         }
     }
 }
예제 #2
0
 private void EditLocalQueue(LocalPrintQueueRow row, LocalPrintQueueInfo localQueue)
 {
     using (ExistingQueueForm form = new ExistingQueueForm(localQueue))
     {
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             _printQueueRows.Remove(row);
             _printQueues.Remove(localQueue);
             _printQueues.Add(form.PrintQueue);
             _printQueueRows.Add(new LocalPrintQueueRow(form.PrintQueue));
         }
     }
 }