Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmEntryExpenses form = new FrmEntryExpenses(entryType);

            if (form.ShowDialog() == DialogResult.OK)
            {
                dtvRevenue.DataSource = LoadEntriesTypes();
            }
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            EntryExpenses    editEntry = (EntryExpenses)dtvRevenue.SelectedRows[0].DataBoundItem;
            FrmEntryExpenses form      = new FrmEntryExpenses(editEntry, ctr.Context);

            if (form.ShowDialog() == DialogResult.OK)
            {
                dtvRevenue.Rows.Clear();
                dtvRevenue.DataSource = LoadEntriesTypes();
            }
        }