Ejemplo n.º 1
0
        private void toolStripAddPrinter_Click(object sender, EventArgs e)
        {
            AddPrinter addPrinterDialog = new AddPrinter();

            addPrinterDialog.ShowDialog();
            if (addPrinterDialog.DialogResult == DialogResult.OK)
            {
                printers.Add(addPrinterDialog.SelectedPrinter);

                // save file
                SavePrinters(printers.ToArray());
            }
        }
Ejemplo n.º 2
0
        private void toolStripAddPrinter_Click(object sender, EventArgs e)
        {
            AddPrinter addPrinterDialog = new AddPrinter();
            addPrinterDialog.ShowDialog();
            if (addPrinterDialog.DialogResult == DialogResult.OK)
            {
                printers.Add(addPrinterDialog.SelectedPrinter);

                // save file
                SavePrinters(printers.ToArray());
            }
        }