public void SetSettings(Application.Settings settings) { this.setts = settings; this.comboBox_general_defaultOpMode.Text = settings.General_DefaultOpMode.ToString(); this.comboBox_general_opModeRunErrRep.Text = settings.General_OpModeRunErrorReporting.ToString(); this.textBox_general_jobsFile.Text = settings.General_JobsFile; }
public settings(Application.Settings settings) { InitializeComponent(); this.Icon = Properties.Resources.icon; this.tabControl1.TabPages["tabPage_general"].Text = Properties.Strings.settings_tab_general; this.button_cancel.Text = Properties.Strings.gCancel; this.button_cancel.DialogResult = DialogResult.Cancel; this.button_ok.Text = Properties.Strings.gOK; this.button_ok.DialogResult = DialogResult.OK; this.label_general_defaultOpMode.Text = Properties.Strings.settings_general_defaultOpMode; this.label_general_opModeRunErrRep.Text = Properties.Strings.settings_general_opModeRunErrRep; this.label_general_jobsFile.Text = Properties.Strings.settings_general_jobsFile; this.comboBox_general_defaultOpMode.Items.AddRange(Enum.GetNames(typeof(Application.Settings.OpMode))); this.comboBox_general_opModeRunErrRep.Items.AddRange(Enum.GetNames(typeof(Application.Settings.ErrorReporting))); this.SetSettings(settings); }