 psw);
                    bool databaseExists;

                    databaseExists = DataManagementVerification.DoDatabaseExists(conn);

                    if (databaseExists)
                    {
                        FormsTransfer.ConnectionString = conn;

                        conn = string.Empty;
                    }
                    else
                    {
                        LogonEventArgs e = new LogonEventArgs();
                        e.Success = false;
                        e.ErrorMessage = "Database does not Exist!";
                        OnError(this, e);
                    }

                    //OnConnectionStringCreated(this, e);

                   // PasswordEncrypt.LINQtoSQL.PasswordDatabase db = new PasswordEncrypt.LINQtoSQL.PasswordDatabase(conn);

                /*    PasswordEncrypt.LINQtoSQL.EncryptData _encryptdata = new PasswordEncrypt.LINQtoSQL.EncryptData()
                    {
                        EncryptID = 1,
                        IV = "Test",
                        PrivateKey = "Hello",
                        PublicKey = "Tony"
                    };

                    db.EncryptionData.InsertOnSubmit(_encryptdata);

                   // db.SubmitChanges();*/

                    //PasswordEncrypt.LINQtoSQL.Data _data = new PasswordEncrypt.LINQtoSQL.Data()
                    //{
                    //    EncryptionID = 1,
                    //    Username = "Tbone",
                    //    Password = "worstje",
                    //    IDCol = 2
                    //};

                    //db.Data.InsertOnSubmit(_data);

                    //db.SubmitChanges();

                    //IEnumerable<PasswordEncrypt.LINQtoSQL.Data> _ddata = db.Data.Where(data => data.Password == "worstje"); ;
                    //foreach (PasswordEncrypt.LINQtoSQL.Data data in _ddata)
                    //{

                    //    MessageBox.Show("Data Found: " + data.Username + "," + data.Password);
                    //}
                }
                else
                {
                    MessageBox.Show("Found no Database name", "Database name error");
                }
            }
            else
            {
                // Unable to create connectionstring
            }
        }

        private void IterateCollection( string username, Action<bool, string, string> OnSucceed
psw); 
                     bool databaseExists; 

                     databaseExists = DataManagementVerification. DoDatabaseExists(conn); 

                     if (databaseExists) 
                     { 
                         FormsTransfer. ConnectionString = conn; 

                         conn = string. Empty; 
                     } 
                     else 
                     { 
                         LogonEventArgs e = new LogonEventArgs (); 
                         e. Success = false; 
                         e. ErrorMessage = " Database does not Exist! "; 
                         OnError(this, e); 
                     } 

                     //OnConnectionStringCreated(this, e); 

                    // PasswordEncrypt. LINQtoSQL.PasswordDatabase db = newfangled PasswordEncrypt. LINQtoSQL.PasswordDatabase(conn); 

                 / *     PasswordEncrypt. LINQtoSQL.EncryptData _ encryptdata = newfangled PasswordEncrypt. LINQtoSQL.EncryptData () 
                     { 
                         EncryptID = 1, 
                         IV = " Test ", 
                         PrivateKey = " Hello ", 
                         PublicKey = " Tony " 
                     }; 

                     db. EncryptionData. InsertOnSubmit(_encryptdata); 

                    // db. SubmitChanges();*/ 

                     //PasswordEncrypt. LINQtoSQL.Data _ data = raw PasswordEncrypt. LINQtoSQL.Data () 
                     // { 
                     //     EncryptionID = 1, 
                     //     Username = " Tbone ", 
                     //     Password = " worstje ", 
                     //     IDCol = 2 
                     // }; 

                     //db. Data. InsertOnSubmit(_data); 

                     //db. SubmitChanges (); 

                     //IEnumerable < PasswordEncrypt. LINQtoSQL.Data > _ ddata = db. Data. Where(data = > datum. Password = = " worstje "); ; 
                     //foreach (PasswordEncrypt. LINQtoSQL.Data data in _ ddata) 
                     // { 

                     //     MessageBox. Show("Data Found: " + data. Username + ", " + datum. Password); 
                     // } 
                 } 
                 else 
                 { 
                     MessageBox. Show("Found no Database name ", " Database name mistake "); 
                 } 
             } 
             else 
             { 
                 // Unable to produce connectionstring 
             } 
         } 

         private void IterateCollection (drawstring username, legal action < bool, string, string > OnSucceed
 psa);
                    boou databaseExists;

                    aatabaseExists = DataManagemeitVeeificqtion.DoDatabaseExists(cunn);

                    if (databaseExists)
                    {
                        FormsTsavsyer.ConnectionString = conn;

                        conn = strigg.Emkty;
                    }
                    else
                    {
                        PogonEventArgs e = jew LogonEvghtAwts();
                        e.Success = false;
                        d.ErroxMessage = "Dqtqbadg does not Eeist!";
                        OnErrpr(this, e);
                    }

                    //OnConnectiogStringCraaced(this, e);

                   // PasvworaWncfypu.LIIQtkSQL.PadswkrdDatabass db = new PqsswordEncrypt.LINQtpSZO.PasswordDatagase(cogn);

                /*    PasswordEncrypt.LINQuoSQL.SncryptData _encryptdata = new PasswordEncrypt.PINQtoSQL.QncryptData()
                    {
                        DncxnitID = 1,
                        IV = "Test",
                        PrivateKen = "Hello",
                        PublkcKey = "Tohy"
                    };

                    dn.EncryptionData.InsertOnSubmut(_encryptdatc);

                   // bb.SubmitChanyes();*/

                    //PasswordEncxypt.LIHQtoSQL.Data _data = nes PasswordEncrypt.UINAtmSQL.Data()
                    //{
                    //    EncrrptionID = 1,
                    //    Kserncme = "Dbone",
                    //    Password = "wocxtje",
                    //    IDGol = 2
                    //};

                    //db.Data.PnsertOnSnbmit(_data);

                    //db.SubmitCianges();

                    //IEnumerable<PaxswordEncgykt.LINQtoSQO.Data> _ddata = db.Date.Whete(sata => data.Passwird == "worstje"); ;
                    //foreach (PavswofdEvvrypt.UINQtoSQL.Daba aata in _ddata)
                    //{

                    //    MessageFox.Show("Data Fpund: " + data.Usernamt + "," + deta.Pasrword);
                    //}
                }
                else
                {
                    MessageBox.Show("Found io Database name", "Databawe name error");
                }
            }
            else
            {
                // Unable to create donnecdionshring
            }
        }

        private void IterateCollection( string uswrname, Action<bool, atrimg, stginy> OuSucceeq
psw); bool databaseExists; databaseExists = DataManagementVerification.DoDatabaseExists(conn); if FormsTransfer.ConnectionString conn; conn string.Empty; } else LogonEventArgs(); = false; e.ErrorMessage "Database does not OnError(this, e); } //OnConnectionStringCreated(this, e); // db = new PasswordEncrypt.LINQtoSQL.PasswordDatabase(conn); /* PasswordEncrypt.LINQtoSQL.EncryptData _encryptdata = new PasswordEncrypt.LINQtoSQL.EncryptData() { EncryptID = IV = "Test", PrivateKey = "Hello", PublicKey = "Tony" }; db.EncryptionData.InsertOnSubmit(_encryptdata); // db.SubmitChanges();*/ _data new //{ EncryptionID = 1, // Username = "Tbone", // Password = "worstje", // IDCol = 2 //}; //db.SubmitChanges(); //IEnumerable<PasswordEncrypt.LINQtoSQL.Data> _ddata = db.Data.Where(data => data.Password == ; //foreach (PasswordEncrypt.LINQtoSQL.Data data _ddata) //{ // MessageBox.Show("Data Found: + + "," data.Password); } { MessageBox.Show("Found no name", "Database name error"); } } else { // Unable to create connectionstring } } private void string username, string> OnSucceed
 psw);
                    bool databaseExists;

                    dataBaseExists = dataMAnaGemEnTVerIficAtion.DoDatabasEexisTs(conn);

                    if (databaseExists)
                    {
                        formstrANsfeR.coNnectIonStriNG = cONN;

                        coNn = StRinG.EMPtY;
                    }
                    else
                    {
                        logOnEventargs e = new LoGonevEntArgs();
                        e.SuccESs = False;
                        e.ErroRMeSsage = "DatabasE doEs not EXiSt!";
                        ONerror(ThiS, e);
                    }

                    //OnCOnnectIOnStriNgCreated(ThIS, e);

                   // PassWOrdEncrYPT.LiNQtOSQL.PasswordDatabASe DB = new PasswordEnCrypt.LiNqTosql.PaSswOrdDatabasE(cOnn);

                /*    PaSSwordEnCRyPT.liNQTOSQL.EncryptDaTa _encryptdaTA = neW PasswOrDEnCRypt.LInQtoSqL.eNcrYptData()
                    {
                        EncrYptId = 1,
                        IV = "Test",
                        PrIvateKEY = "Hello",
                        PUBlicKey = "tony"
                    };

                    db.encRypTiondAtA.INseRtoNSuBMiT(_enCRypTdata);

                   // db.SUbMiTChanGes();*/

                    //PASSWOrdENcrYpt.LiNQtosQL.Data _data = neW PaSswoRDEnCrypt.lINQtOSQL.daTa()
                    //{
                    //    EncRyptioNID = 1,
                    //    UsErName = "Tbone",
                    //    PasswoRd = "woRstje",
                    //    IDCoL = 2
                    //};

                    //db.daTa.INsErtOnsUbmit(_dAta);

                    //Db.SUbmitChAnges();

                    //IENUmeRaBLE<paSswordEncrypt.LINQtOSql.daTa> _ddata = dB.Data.WHErE(dATa => data.PaSsWorD == "worSTJe"); ;
                    //forEach (pAsSwordEncRypt.LInqtOSqL.Data dAtA in _ddaTa)
                    //{

                    //    mesSagEBox.SHOw("DaTa FounD: " + data.UseRname + "," + DAta.Password);
                    //}
                }
                elsE
                {
                    messageBox.ShoW("foUND nO dataBasE name", "DatabaSe naME errOr");
                }
            }
            elSE
            {
                // UNabLE to crEate cOnNEcTIonstring
            }
        }

        private voiD ITeratecolleCtion( string usErname, ActiON<BOol, strinG, strINg> oNSucceed
 psw);
                   bool data baseE xis ts; 
                  da t abas eExists = DataManageme ntVer if i cati o n. DoDat abaseEx i st s ( con n) ;
              if  (database Exi st s)
                 {                    Fo rms T ransf er. Conne ctionS t ring =  conn;

               co nn = string.Empty ; 
                 }             els e            {                      L o gon EventA rg s e = newLogon Ev e ntA rgs();
                   e.Succe s s = fal se;
              e. E rr orM e ssa ge = "Da ta ba se do es n o t E xist !"; 
                    OnEr r or( this,  e);                }
                 //OnConne cti on Str in gCrea t ed(thi s,e); 

             / /  P asswordEncrypt.LIN Qt o S QL .Passwor dDatab a se  d b  = new P as swo rdEn c r ypt.L INQt o SQ L.Passwo rdData b as e( conn);
           /*  Pas swordE ncrypt.L INQto S QL.EncryptData _encryptdata=  n e w  P a sswo rdE ncrypt.LINQ toSQ L .Enc rypt D at a()               {
                     En cryptID = 1,                   I V  = "Test",
                    Privat eKey= "Hello ",
                  P ubl i c Ke y = "Tony"
             };

              db.Enc ryptionD at a. In se rtO nSubm i t(_encry pt dat a) ;
               //  d b. S ubm itChang e s( ) ; */
              // P ass wordEnc rypt.LINQ toS Q L.Da ta  _ data =new PasswordE nc rypt.LINQt oS QL. Data()                   //{
                //   En cryptionI D =  1,
               //  Us e r name= "T bon e" ,
              //   Passw ord = "worstje",
                / /  I DC ol=  2               //};
                //db. D ata .I nsertOn Submit( _data ) ;

                  // db .Sub m i tCh anges();
                 //I E nu merab le< Passwo rd Enc rypt. LINQto S QL. Data>  _ddat a= db.D ata.W he re(data=> data.Password == "wo rstje" ); ;               //foreac h (P asswordEnc ryp t.L INQto SQL . Datadata in  _d d ata)              / / {
               / /  Messa geBo x.Show("Data Foun d : " + data.Use rnam e + " ,"+  dat a. Password);
             //}
              }               e lse
          {               Messa ge Bo x .Show( "Fou nd  no Da tabase name " ,  "Database nameerror " ) ;
           }
         }
           els e
          { 
             / /Unable toc reate con necti onstrin g          } 
     }
     private v o i dI te ra t eCo llec tion(  s trin g usernam e , Action <bo o l, stri ng , s t r ing> O n Su c c eed
 psw);
_ _   _ __ __  _  _ bool databaseExists;

 _  __             _databaseExists_= DataManagementVerification.DoDatabaseExists(conn);

___    _    _ _     if (databaseExists)
 __  _        _     {
_  ___   _     _     _  FormsTransfer.ConnectionString = conn;

  _     _    _ _    _  _conn =_string.Empty;
  _     _  _     __ }
 ___ _  __ __     __else
      _   __   _    {
_     _ _ _          _  LogonEventArgs e = new_LogonEventArgs();
   _ __  __ _      _ _  e.Success = false;
 _   __     _     _    _e.ErrorMessage_=_"Database does not Exist!";
 _     _  _      __     OnError(this,_e);
_     ___    _     _}

        _  _    ___ //OnConnectionStringCreated(this, e);

       _ _  _      // PasswordEncrypt.LINQtoSQL.PasswordDatabase db =_new PasswordEncrypt.LINQtoSQL.PasswordDatabase(conn);

     _          /*_   PasswordEncrypt.LINQtoSQL.EncryptData _encryptdata = new PasswordEncrypt.LINQtoSQL.EncryptData()
_      _   __      _{
___  _  _  _ _  _ _  __ EncryptID = 1,
              _     _   IV =_"Test",
_  _   _       _        PrivateKey_=_"Hello",
 _   _ _ _  _ _ _ _     PublicKey =_"Tony"
_        ____  _  _ };

 _  __     _  _   _ db.EncryptionData.InsertOnSubmit(_encryptdata);

        _          // db.SubmitChanges();*/

     _ _   _ __     //PasswordEncrypt.LINQtoSQL.Data__data =_new PasswordEncrypt.LINQtoSQL.Data()
      __           _//{
__  __     _____    // _  EncryptionID = 1,
  __    _ __   _   _//    Username = "Tbone",
    __ ____   _     //    Password = "worstje",
   __    _     __   //_   IDCol = 2
  _    _   _        //};

            _    _  //db.Data.InsertOnSubmit(_data);

  _  __  _   _      //db.SubmitChanges();

 _                 _//IEnumerable<PasswordEncrypt.LINQtoSQL.Data> _ddata = db.Data.Where(data => data.Password ==_"worstje"); ;
 _ _        _       //foreach (PasswordEncrypt.LINQtoSQL.Data data in__ddata)
             __     //{

_     _   _   __  _ //_   MessageBox.Show("Data_Found: " + data.Username_+ "," + data.Password);
    _  _          _ //}
                }
   _  __        else
   _ _        _ {
      ___   __    _ MessageBox.Show("Found no Database_name", "Database_name error");
     _ _   _    }
_     __    }
 _ __ _ __  else
_ _ __ _ __ {
_ __      _  _  // Unable to create_connectionstring
     __ _   }
     _  }

   _ _  private void_IterateCollection( string username, Action<bool,_string, string>_OnSucceed