private void btnIncome_Click(object sender, EventArgs e) { IncomePage income = new IncomePage(); income.Activate(); income.Show(); }
private void btnIncome_Click(object sender, EventArgs e) { var incomePage = new IncomePage(); incomePage.Activate(); incomePage.ShowDialog(); }
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(); } }