コード例 #1
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            HoaDonTCDAL dal    = new HoaDonTCDAL();
            var         result = dal.Load();

            hoaDonTinhCuocThangsBindingSource.DataSource = result;
            txtidsim.Clear();
            txtthanhtien.Clear();
            txttongtien.Clear();
            cbngay.Checked = false;
        }
コード例 #2
0
        public HoaDonTC()
        {
            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.HoaDonTinhCuocs.Load();
            //// This line of code is generated by Data Source Configuration Wizard
            txtcuoctb.Text = "50000";
            dtngay.Value   = System.DateTime.Now;
            HoaDonTCDAL dal    = new HoaDonTCDAL();
            var         result = dal.Load();

            hoaDonTinhCuocThangsBindingSource.DataSource = result;
            // This line of code is generated by Data Source Configuration Wizard
            // Instantiate a new DBContext
        }