private void AddLineToLog(string text)
 {
     ParamLog.Text          += DateTime.Now.ToShortDateString() + "   " + DateTime.Now.ToLongTimeString() + "     " + text + "\n";
     ParamLog.SelectionStart = ParamLog.Text.Length; //Set the current caret position at the end
     ParamLog.ScrollToCaret();                       //Now scroll it automatically
 }
 private void ParametersSettings_Load(object sender, EventArgs e)
 {
     InitData();
     ParamLog.Clear();
 }