private void FineRotationToolStripMenuItem_Click(object sender, EventArgs e) { FineRotationForm frmFineRotation = new FineRotationForm(); if (frmFineRotation.ShowDialog() == System.Windows.Forms.DialogResult.OK) { int value = frmFineRotation.GetAngle(); if (IsValueInRange(value, -180, 180)) { Rotate(value); } } }