private void dataIncomeCategory_SelectionChanged(object sender, EventArgs e) { if (dataIncomeCategory.SelectedRows.Count > 0) { incCat.Id = System.Convert.ToInt32(dataIncomeCategory.Rows[dataIncomeCategory.CurrentRow.Index].Cells[3].Value.ToString()); incCat = (Classes.IncomeCategory)(Helpers.ReaderHelper.SelectObjectOnId((object)incCat, "spIncomeCategory", 11, incCat.Id)); } }
private void fIncomeCategory_Load(object sender, EventArgs e) { incCat = new Classes.IncomeCategory(); Helpers.ReaderHelper.RefreshComboBox("select id, name from Status", ref cmbStatus, "Status", "name", "id"); RefreshGrid(); }
public fIncomeCategoryUpdate(Classes.IncomeCategory incCat, Forms.fIncomeCategory fincCat) { this.incC = incCat; this.fincC = fincCat; InitializeComponent(); }