Пример #1
0
 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));
     }
 }
Пример #2
0
 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();
 }
Пример #3
0
 public fIncomeCategoryUpdate(Classes.IncomeCategory incCat, Forms.fIncomeCategory fincCat)
 {
     this.incC  = incCat;
     this.fincC = fincCat;
     InitializeComponent();
 }