Exemplo n.º 1
0
        private void btnIncome_Click(object sender, EventArgs e)
        {
            IncomePage income = new IncomePage();

            income.Activate();
            income.Show();
        }
Exemplo n.º 2
0
        private void btnIncome_Click(object sender, EventArgs e)
        {
            var incomePage = new IncomePage();

            incomePage.Activate();
            incomePage.ShowDialog();
        }
Exemplo n.º 3
0
        private void incomeDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

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

                ExpenseDetails.IncomeId = Convert.ToInt32(incId);


                this.Hide();
                var incomePage = new IncomePage();
                incomePage.Activate();
                incomePage.Show();
            }
        }