Пример #1
0
 /// <summary>
 /// when the power bar is adjusted , the current tank power is set to the adjustment
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void powerTrack_ValueChanged(object sender, EventArgs e)
 {
     currentTank.SetTankPower(powerTrack.Value);
     // set the label to show the current power of shot
     powerLabel.Text = string.Format("Power: {0}", powerTrack.Value);
 }