private void print_RadioButton_CheckedChanged(object sender, EventArgs e) { pageCount_groupBox.Text = _textFolderPath; path_label.Visible = true; path_label.Enabled = true; path_textBox.Visible = true; path_textBox.Enabled = true; jobBuildPageCount_label.Visible = false; jobBuildPageCount_numericUpDown.Visible = false; jobBuildPageCountCaption_label.Text = _textFolderPathCaption; scanDestination_comboBox.Enabled = false; printSource_comboBox.Enabled = true; job_label.Text = KioskJobType.Print.GetDescription(); sourceDestination_label.Visible = true; sourceDestinationCaption_label.Visible = true; sourceDestination_label.Text = printSource_comboBox.Text; sourceDestinationCaption_label.Text = _textSource; options_Button.Enabled = true; KioskPrintSource printsource = EnumUtil.GetByDescription <KioskPrintSource>(printSource_comboBox.Text); switch (printsource) { case KioskPrintSource.PrinterOn: options_Button.Enabled = false; break; case KioskPrintSource.USB: options_Button.Enabled = true; break; } }
private void PrintSource_comboBox_SelectedIndexChanged(object sender, EventArgs e) { sourceDestination_label.Text = printSource_comboBox.Text; KioskPrintSource printsource = EnumUtil.GetByDescription <KioskPrintSource>(printSource_comboBox.Text); switch (printsource) { case KioskPrintSource.PrinterOn: options_Button.Enabled = false; break; case KioskPrintSource.USB: options_Button.Enabled = true; break; } }