private void Dashboard_Load(object sender, EventArgs e) { printer = printer.LoadPrinter(); printerControl.SetupPrinterModel(); printerControl.SetupPrinterConnection(); PopulateStartComboboxes(); PopulateFinishComboboxes(); PopulateGrid(); Clear(); }
private void btn_testPrinter_Click(object sender, EventArgs e) { printerControl.SetupPrinterModel(); printerControl.SetupPrinterConnection(); printerControl.PrintText( printer.Bold, printer.Expanded, printer.Font, printer.Italic, printer.Underline, "Teste de Impressão" ); printerControl.CutPaper(); }