Example #1
0
        private void btnIncome_Click(object sender, EventArgs e)
        {
            IncomePage income = new IncomePage();

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

            incomePage.Activate();
            incomePage.ShowDialog();
        }
Example #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();
            }
        }