private void gen_s_super_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
private void gen_j_super_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
private void gen_s_crew_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
// ....
// ------------------------------------------------------------------
// Ignore display 100+ same signature functions that identical inside
// ------------------------------------------------------------------
// ....
private void ind_asr_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
private void ind_asg_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
private void ind_asre_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
Don't just focus on the art of variable naming. Please admire the hard work on it.
The coder must click the Textbox to generate the event handler by IDE and doing copy and paste over 100+ times.
Actually, selecting all Textbox in the WinForm and typing "input_ValueChanged" in the Properties->events->ValueChanged, then double click it can do the same thing that only need one instance of statement inside.
private void input_ValueChanged(object sender, EventArgs e)
{
contentChanged = true;
}
No comments:
Post a Comment