case/switchってなぜか忘れやすいのよね。
switch (ii) { case 0: this.Top -= k; break; case 1: this.Top -= k;this.Left += k; break; case 2: this.Left += k; break; case 3: this.Top += k;this.Left += k; break; case 4: this.Top += k; break; case 5: this.Top += k;this.Left -= k; break; case 6: this.Left -= k; break; case 7: this.Top -= k; this.Left -= k; break; default: break; }
breakを忘れない事、defaultを入れて「漏れ」を防ぐのが重要かしら?