private void Window_Closed(object sender, EventArgs e) { db?.Dispose(); }
void Refresh(int n) { db.Dispose(); db = CreateDbContext(); Switch(n); }
private void Window_Closed(object sender, EventArgs e) { db?.Dispose(); }
void Refresh(int n) { db.Dispose(); db = CreateDbContext(); Switch(n); }