/// <summary>
 /// Create database for new company
 /// </summary>
 /// <returns></returns>
 public bool CreateCompany()
 {
     try
     {
         backgroundWorker1.RunWorkerAsync();
         f1 = new frmLoading();
         f1.ShowDialog();              
     }
     catch (Exception ex)
     {
         MessageBox.Show("CR10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     return true;
 }  
 /// <summary>
 /// On 'Copy' button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnCopy_Click(object sender, EventArgs e)
 {
     try
     {
     strSourceDbPath = txtSourcePath.Text.Trim();
     strDestinationDb = txtDestinationPath.Text.Trim();
     if (strSourceDbPath == string.Empty)
     {
         MessageBox.Show("Select source path", "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         if (strDestinationDb == string.Empty)
         {
             MessageBox.Show("Select destination path", "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else
         {
             lblSuccess.Visible = false;
             backgroundWorker1.RunWorkerAsync();
             f1 = new frmLoading();
             f1.ShowDialog();
             
         }
     }
     }
     catch (Exception ex)
     {
         MessageBox.Show("CData:5" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }