private void checkBoxAutoSave_CheckedChanged(object sender, EventArgs e) { logOpt.logSaveChecked = checkBoxAutoSave.Checked; log.SaveEnable = logOpt.logSaveChecked; if (checkBoxAutoSave.Checked) { log.Path = logOpt.logPath; log.Name = logOpt.logName; log.UpdateNameTimestamp(); quikOpenLog.Text = log.Path + "\\" + log.GetLogName(); } else { quikOpenLog.Text = "Click to open log file"; } logOpt.Serialize("serial.dat"); }