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