public void Disconnect() { if (_db != null) { _db.Close(); _db = null; } }
public bool Connect() { Disconnect(); if (LoginInfo != null) _db = new DataBase(LoginInfo); return IsConnect; }