/// <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); } }
/// <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); } }