Exemple #1
0
 /// <summary>
 /// add a printer
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void hinzufügenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddPrinterView view = new AddPrinterView();
     if (view.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         AddPrinter(view.Printer);
     }
 }
Exemple #2
0
        /// <summary>
        /// add a printer
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void addPrinterToolBarButton_Click(object sender, EventArgs e)
        {
            AddPrinterView view = new AddPrinterView();
            if (view.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                AddPrinter(view.Printer);
            }

        }