Exemple #1
0
        public override void DoCreateFile(string filename)
        {
            string conns = EfzTool.GetConnectionString(filename, EfzLogin, EfzPassword);

            using (DbConnection conn = new EfzConnection(conns))
            {
                conn.Open();
                conn.Close();
            }
        }
Exemple #2
0
        public override void DoOpenFile()
        {
            using (DbConnection conn = new EfzConnection(EfzTool.GetConnectionString(OpenFileName, EfzLogin, EfzPassword)))
            {
                Async.InvokeFromGui(conn.Open);
                Async.InvokeFromGui(conn.Close);
            }
            EfzStoredConnection stored = new EfzStoredConnection();

            stored.DbFilename = OpenFileName;
            stored.FileName   = GetNewFilePath(".con");
            stored.Login      = EfzLogin;
            stored.Password   = EfzPassword;
            stored.Save();
        }
Exemple #3
0
 public override string GenerateConnectionString(bool includepwd)
 {
     return(EfzTool.GetConnectionString(DbFilename, Login, Password));
 }