private void dataBillCategory_SelectionChanged(object sender, EventArgs e) { if (dataBillCategory.SelectedRows.Count > 0) { billC.Id = System.Convert.ToInt32(dataBillCategory.Rows[dataBillCategory.CurrentRow.Index].Cells[3].Value.ToString()); billC = (Classes.BillCategory)(Helpers.ReaderHelper.SelectObjectOnId((object)billC, "spBillCategory", 11, billC.Id)); } }
public fBillCategoryUpdate(Classes.BillCategory billCat, Forms.BillCategory fBillCat) { this.billC = billCat; this.fBillC = fBillCat; InitializeComponent(); }
private void BillCategory_Load(object sender, EventArgs e) { billC = new Classes.BillCategory(); Helpers.ReaderHelper.RefreshComboBox("select id, name from Status", ref cmbStatus, "Status", "name", "id"); RefreshGrid(); }