I am relatively new to programming, as you will soon see…
I have 2 events, which execute the same code. I currently have the following pseudo code for a datagridview:
private void dgv_CellEnter(object sender, DataGridViewCellEventArgs e)
{
string abc = "abc";
}
private void dgv_CellClick(object sender, DataGridViewCellEventArgs e)
{
string abc = "abc";
}
Is there a way to combine this into one event? Is there a better way to do this?
Why not just have one method and map it to two events?