C# Class PrinterManagerHelper.Form1

显示文件 Open project: FOGProject/fog-client

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ClearAll ( ) : void
GetPrinterDriver ( ManagementBaseObject printer ) : string

Get the path to the inf used by a printer

GetPrinterIP ( ManagementBaseObject printer ) : string

Get the IP of a printer

GetPrinterNames ( ) : List

Extract just the printers' names from the existing list

GetPrinters ( ) : ManagementBaseObject>.Dictionary

Get a list of all printers attached to a host

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

addButton_Click ( object sender, EventArgs e ) : void
printerComboBox_SelectedIndexChanged ( object sender, System e ) : void

Update the fields when a new printer is selected

typeCombo_SelectedIndexChanged ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form1() public method

public Form1 ( ) : System
return System