public frmMain()
        {
            InitializeComponent();
            application = new application();
            this.writeInitialEntries();
            this.Text = this.Text + " (Version: " + Application.ProductVersion + ")";
            this.txtDatabasePath.Text = application.DatabasePath;
            this.logMessage("DatabasePath::" + this.txtDatabasePath.Text);
            if (application.ErrorMessage.Length > 0)
            {
                this.logMessage("DatabasePath::" + this.txtDatabasePath.Text);
            }
            this.txtAccount.Text           = application.AccountName;
            this.txtAccountAdminLogin.Text = application.AccountLogin;
            this.txtDataUploadToken.Text   = string.Empty;
            if (application.ExportPath.Length == 0)
            {
                if (application.bDirectoryExists(System.IO.Path.GetDirectoryName(this.txtDatabasePath.Text)))
                {
                    this.txtExportFileLocation.Text = System.IO.Path.GetDirectoryName(this.txtDatabasePath.Text) + "\\" + "timeclock-import.json";
                }
                else
                {
                    this.txtExportFileLocation.Text = string.Empty;
                }
            }
            else
            {
                this.txtExportFileLocation.Text = application.ExportPath;
            }
            this.logMessage("AccountName::" + this.txtAccount.Text);
            this.logMessage("AccountLogin::" + this.txtAccountAdminLogin.Text);
            this.logMessage("ExportPath::" + this.txtExportFileLocation.Text);
            this.FormClosing     += new FormClosingEventHandler(frmMain_FormClosing);
            this.btnBrowse.Click += new EventHandler(btnBrowse_Click);
            this.btnBrowseExportLocation.Click += new EventHandler(btnBrowseExportLocation_Click);
            this.btnClearLog.Click             += new EventHandler(btnClearLog_Click);
            this.btnCopyLog.Click += new EventHandler(btnCopyLog_Click);
            this.access            = new access(this.txtDatabasePath.Text.Trim());
            this.access.LogEvent  += new LogEventHandler(logEvent);

#if DEBUG
            this.chkNoFormValidation.Visible = true;
            this.chkNoValidityChecks.Visible = true;
#else
            this.chkNoFormValidation.Visible = false;
            this.chkNoValidityChecks.Visible = false;
#endif
        }
 /// <summary>
 /// constructor
 /// </summary>
 public exportFile(access pAccess, string pSavePath, string pAccount, string pAccountAdminLogin, string pDataUploadToken)
 {
     this.exportHeader = new exportHeader(pAccount, pAccountAdminLogin, pDataUploadToken);
     this.savePath     = pSavePath;
     this.access       = pAccess;
 }