public ThongTinHDDK(SIM ff, ThongtinSIM gg) { InitializeComponent(); // This line of code is generated by Data Source Configuration Wizard // Instantiate a new DBContext //Model.EFModel.QLCuocDTContext dbContext = new Model.EFModel.QLCuocDTContext(); //// Call the Load method to get the data for the given DbSet from the database. //dbContext.HoaDonDangKies.Load(); //This line of code is generated by Data Source Configuration Wizard DangKySIMDAL dal = new DangKySIMDAL(); var res = dal.Load(); hoaDonDangKiesBindingSource.DataSource = res; if (gg == null) { f = ff; } if (ff == null) { g = gg; } //txtmakh.Text = MaKH; }
private void simpleButton7_Click(object sender, EventArgs e) { ThongtinSIM f = new ThongtinSIM(this); f.Show(); }