コード例 #1
0
        public void Clear()
        {
            SIMDAL dal = new SIMDAL();

            txthddk.Clear();
            txtsosim.Clear();
            txtidsim.Clear();
            txttensim.Clear();
            sIMsBindingSource2.DataSource = dal.Load();
        }
コード例 #2
0
        public ThongtinSIM(HoaDonTC ff)
        {
            InitializeComponent();
            // This line of code is generated by Data Source Configuration Wizard
            // Instantiate a new DBContext
            SIMDAL dal = new SIMDAL();

            var res = dal.Load();

            // This line of code is generated by Data Source Configuration Wizard
            sIMsBindingSource2.DataSource = res;

            f = ff;
        }
コード例 #3
0
ファイル: SIM.cs プロジェクト: nguyenhieutrung7/QuanLyCuocDT
        public SIM()
        {
            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.SIMs.Load();
            //// This line of code is generated by Data Source Configuration Wizard
            //sIMsBindingSource1.DataSource = dbContext.SIMs.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.SIMs.Load();
            // This line of code is generated by Data Source Configuration Wizard
            SIMDAL dal = new SIMDAL();
            var    res = dal.Load();

            sIMsBindingSource.DataSource = res;
        }