Ejemplo n.º 1
0
        private void btnCatSearch_Click(object sender, EventArgs e)
        {
            ExpensePage expense = new ExpensePage();

            expense.Activate();
            expense.Show();
        }
Ejemplo n.º 2
0
        private void btnExpense_Click(object sender, EventArgs e)
        {
            var expensePage = new ExpensePage();

            expensePage.Activate();
            expensePage.ShowDialog();
        }
Ejemplo n.º 3
0
        private void dataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn &&
                e.RowIndex >= 0)
            {
                var expId = expenseDataGrid.Rows[e.RowIndex].Cells[4].Value.ToString();

                ExpenseDetails.ExpenseId = Convert.ToInt32(expId);


                this.Hide();
                var expensePage = new ExpensePage();
                expensePage.Activate();
                expensePage.Show();
            }
        }