示例#1
0
        private void savePrinterButton_Click(object sender, EventArgs e)
        {
            string printerName = this.printerBox.SelectedValue.ToString();

            ParameterService.setPrinter(printerName);
            ParameterService.setEnablePrinter(cbxEnablePrint.Checked ? "1" : "0");
            this.closeView();
            MessageService.displayInfoMessage(GeneralConstants.SET_PRINTER_MESSAGE + printerName, GeneralConstants.SET_PRINTER_TITLE);
        }