private void btn_ok_Click(object sender, EventArgs e) { //Save the changes back StepConfig.WriteString("BlazonURL", txt_url.Text); StepConfig.WriteString("BlazonTempDIR", txt_temp.Text); StepConfig.WriteDouble("WaitTime", Convert.ToDouble(numericUpDown1.Value)); StepConfig.WriteBoolean("CleanUp", chk_Clean.Checked); this.Close(); }
public override bool SetupCodeModule(Control parentWindow, IValueAccessor stepConfiguration) { //Setup the code module using (SetupForm s = new SetupForm()) { //First read the existing values s.tempPath = stepConfiguration.ReadString("TempPath"); s.Compression = stepConfiguration.ReadDouble("Compression"); if (s.ShowDialog() == DialogResult.OK) { stepConfiguration.WriteString("TempPath", s.tempPath); stepConfiguration.WriteDouble("Compression", s.Compression); return(true); } } // No changes were made. return(false); }