public MainWindow() { db = CreateDbContext(); this.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name); InitializeComponent(); }
void Refresh(int n) { db.Dispose(); db = CreateDbContext(); Switch(n); }