Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 public override string GenerateConnectionString(bool includepwd)
 {
     return(EfzTool.GetConnectionString(DbFilename, Login, Password));
 }