Inheritance: System.Windows.Forms.Form
 /// <summary>
 /// Constructor of the Log Dialog.
 /// </summary>
 /// <param name="control"> The Main Control.</param>
 /// <param name="form"> The Main Form.</param>
 public LogDialog(MainControl control, MainForm form)
 {
     InitializeComponent();
     lv_LogDialog.View = View.Details;
     LogSystem.addView(lv_LogDialog);
     this.control = control;
     this.form = form;
 }
 //Constructor
 /// <summary>
 ///  Constructor of the Data Preferences Dialog.
 /// </summary>
 /// <param name="main"> The MainForm, needed to pass changes in the Preferences to the MainControl.</param>
 public DataPreferences(MainForm main)
 {
     this.main = main;
     InitializeComponent();
     TimeStamps = true;
     formatTimeStamp = "ts";
     DataPrefMultiple = 0;
     mTBIntervals.Text = ""+20;
     main.passDataPrefChanges(TimeStamps, getDataPref(), formatToString());
 }
 /// <summary>
 /// Give the MainControl access to the MainForm
 /// </summary>
 /// <param name="form">The Main Form</param>
 public void setMainForm(MainForm form)
 {
     mainForm = form;
 }