protected override void AddNetwork(NetworkPrinter printer) { // Add per machine printer connection var proc = Process.Start("rundll32.exe", " printui.dll,PrintUIEntry /ga /n " + printer.Name); proc?.WaitForExit(120000); // Add printer network connection, download the drivers from the print server proc = Process.Start("rundll32.exe", " printui.dll,PrintUIEntry /in /n " + printer.Name); proc?.WaitForExit(120000); }
protected override void AddNetwork(NetworkPrinter printer) { throw new NotImplementedException(); }
protected abstract void AddNetwork(NetworkPrinter printer);