Exemplo n.º 1
0
        public void Clear()
        {
            DangKySIMDAL dal = new DangKySIMDAL();

            txtidhd.Clear();
            txtmakh.Clear();
            cbngaydk.Checked = false;
            chidk.Clear();
            tttt.Checked = false;
            MaKH         = "";
            hoaDonDangKiesBindingSource1.DataSource = dal.Load();
        }
Exemplo n.º 2
0
        public DangKySIM()
        {
            InitializeComponent();
            // This line of code is generated by Data Source Configuration Wizard
            // Instantiate a new DBContext
            DangKySIMDAL dal = new DangKySIMDAL();
            var          res = dal.Load();

            // This line of code is generated by Data Source Configuration Wizard
            hoaDonDangKiesBindingSource1.DataSource = res;
            // 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
            //hoaDonDangKiesBindingSource1.DataSource = dbContext.HoaDonDangKies.Local.ToBindingList();
        }
Exemplo n.º 3
0
        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;
        }