Example #1
0
        private void OnClickAddPrinter(object sender, EventArgs e)
        {
            DicomPrintConfig    config = new DicomPrintConfig();
            PrinterSettingsForm psf    = new PrinterSettingsForm(config);

            if (psf.ShowDialog(this) == DialogResult.OK)
            {
                Config.Instance.Printers.Add(config);
                SaveSettings();
            }
        }
Example #2
0
        private void OnClickPrinterSettings(object sender, EventArgs e)
        {
            if (lvPrinters.SelectedItems.Count == 0)
            {
                return;
            }

            ListViewItem        lvi    = lvPrinters.SelectedItems[0];
            DicomPrintConfig    config = (DicomPrintConfig)lvi.Tag;
            PrinterSettingsForm psf    = new PrinterSettingsForm(config);

            if (psf.ShowDialog(this) == DialogResult.OK)
            {
                SaveSettings();
            }
            else
            {
                LoadSettings();
            }
        }
Example #3
0
		private void OnClickPrinterSettings(object sender, EventArgs e) {
			if (lvPrinters.SelectedItems.Count == 0)
				return;

			ListViewItem lvi = lvPrinters.SelectedItems[0];
			DicomPrintConfig config = (DicomPrintConfig)lvi.Tag;
			PrinterSettingsForm psf = new PrinterSettingsForm(config);
			if (psf.ShowDialog(this) == DialogResult.OK) {
				SaveSettings();
			} else {
				LoadSettings();
			}
		}
Example #4
0
		private void OnClickAddPrinter(object sender, EventArgs e) {
			DicomPrintConfig config = new DicomPrintConfig();
			PrinterSettingsForm psf = new PrinterSettingsForm(config);
			if (psf.ShowDialog(this) == DialogResult.OK) {
				Config.Instance.Printers.Add(config);
				SaveSettings();
			}
		}