void dbRestore_Complete(object sender, ServerMessageEventArgs e)
 {
     if (showMessage)
     {
         PersianMessageBox pm = new PersianMessageBox();
         pm.Information("توجه", "با موفقیت انجام شد");
     }
     Close();
 }
 private void btnConnect_Click(object sender, EventArgs e)
 {
     errorProvider.Clear();
     Cursor             = Cursors.WaitCursor;
     btnConnect.Enabled = false;
     try
     {
         if (CheckConnection())
         {
             PersianMessageBox pm = new PersianMessageBox();
             pm.Information("اتصال موفق", string.Format("اتصال با سرور '{0}' برقرار است", textSqlServerName.Text));
         }
     }
     catch (Exception ex)
     {
         //Log.AddLog(ex.ToString());
         throw ex;
     }
     finally
     {
         Cursor             = Cursors.Default;
         btnConnect.Enabled = true;
     }
 }