public Form_Main() { InitializeComponent(); db = new DictionaryContext(); db.Records.Load(); Console.WriteLine(db.Records.Local.Count()); dataGridView1.DataSource = db.Records.Local.ToBindingList(); }
public Form_AddRecord(DictionaryContext db) { InitializeComponent(); this.db = db; }