Beispiel #1
0
 private void RemoveDB(DBViewModel db)
 {
     DBs.Remove(db);
     if (DBs.Count > 0)
     {
         ActiveDB = DBs[0];
     }
 }
Beispiel #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;
        }
 private void RemoveDB(DBViewModel db)
 {
     DBs.Remove(db);
     if (DBs.Count > 0)
         ActiveDB = DBs[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;
 }