Exemplo n.º 1
0
        private void btnOld_Click(object sender, EventArgs e)
        {
            HousingCooperativeEntities context = new HousingCooperativeEntities();

            dgvData.DataSource = context.SelectRates(2).ToList();
            btnEdit.Enabled    = false;
        }
Exemplo n.º 2
0
        private void LoadData()
        {
            HousingCooperativeEntities context = new HousingCooperativeEntities();

            dgvData.DataSource = context.SelectRates(1).ToList();
            btnEdit.Enabled    = true;
        }