private void simpleButton4_Click_1(object sender, EventArgs e) { panelmain1.Controls.Clear(); DangKySIM f = new DangKySIM(); f.TopLevel = false; panelmain1.Controls.Add(f); f.Show(); }
public ThongtinKH(ThongTinHDDK ff, DangKySIM gg, HoaDonTC hh) { 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.KhachHangs.Load(); //// This line of code is generated by Data Source Configuration Wizard var result = dal.Load(); //khachHangsBindingSource.DataSource = result; if (ff == null && hh == null) { g = gg; } else if (gg == null && hh == null) { f = ff; } else if (gg == null && ff == null) { h = hh; } // 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.KhachHangs.Load(); //// This line of code is generated by Data Source Configuration Wizard //khachHangsBindingSource1.DataSource = dbContext.KhachHangs.Local.ToBindingList(); //// 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.KhachHangs.Load(); //// This line of code is generated by Data Source Configuration Wizard //khachHangsBindingSource.DataSource = dbContext.KhachHangs.Local.ToBindingList(); // 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.KhachHangs.Load(); //// This line of code is generated by Data Source Configuration Wizard //khachHangsBindingSource1.DataSource = dbContext.KhachHangs.Local.ToBindingList(); // 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.KhachHangs.Load(); // This line of code is generated by Data Source Configuration Wizard khachHangsBindingSource1.DataSource = result; }