Exemplo n.º 1
0
 private void RemoveDB(DBViewModel db)
 {
     DBs.Remove(db);
     if (DBs.Count > 0)
     {
         ActiveDB = DBs[0];
     }
 }
Exemplo n.º 2
0
        private void AddDB(string name, string path)
        {
            if (name == null || path == null)
            {
                return;
            }
            int count = DBs.Where(db => { return(db.DBPath == path); }).Count();

            if (count != 0)
            {
                return;
            }
            DBViewModel newDB = new DBViewModel(name, path);

            DBs.Add(newDB);
            ActiveDB = newDB;
        }
Exemplo n.º 3
0
 private void RemoveDB(DBViewModel db)
 {
     DBs.Remove(db);
     if (DBs.Count > 0)
         ActiveDB = DBs[0];
 }
Exemplo n.º 4
0
 private void AddDB(string name,string path)
 {
     if (name == null || path == null)
         return;
     int count = DBs.Where(db => { return db.DBPath == path; }).Count();
     if (count != 0)
         return;
     DBViewModel newDB = new DBViewModel(name, path);
     DBs.Add(newDB);
     ActiveDB = newDB;
 }