Wim BR

Wim BR

  • 1.9k
  • 14
  • 213

how can i put these into methods ?

Jun 1 2020 1:49 PM
hey 
 
how can i put code under into nessencairy methods ?
 
private void btnUp_Click(object sender, EventArgs e)
{
pbxPicture.Top -=10;
}
private void btnDown_Click(object sender, EventArgs e)
{
pbxPicture.Top += 10;
}
private void btnLeft_Click(object sender, EventArgs e)
{
pbxPicture.Left -= 10;
}
private void btnRight_Click(object sender, EventArgs e)
{
pbxPicture.Left += 10;
}
private void btnUpLeft_Click(object sender, EventArgs e)
{
pbxPicture.Left -= 10;
pbxPicture.Top -= 10;
}
private void btnUpRight_Click(object sender, EventArgs e)
{
pbxPicture.Left += 10;
pbxPicture.Top -= 10;
}
private void btnDownLeft_Click(object sender, EventArgs e)
{
pbxPicture.Left -= 10;
pbxPicture.Top += 10;
}
private void btnDownRight_Click(object sender, EventArgs e)
{
pbxPicture.Left += 10;
pbxPicture.Top += 10;
}
}
}
thx 
Wimo 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (4)