private void DoAdjustement(ImageZoomAdjustement adjustementType) { switch (adjustementType) { case ImageZoomAdjustement.Enlarge: PannablePictureBox.EnlargeImage(); break; case ImageZoomAdjustement.Shrink: PannablePictureBox.ShrinkImage(); break; case ImageZoomAdjustement.None: break; default: throw new ArgumentOutOfRangeException(nameof(adjustementType), adjustementType, null); } }
private void tmrEnlarge_Tick(object sender, EventArgs e) { PannablePictureBox.EnlargeImage(); }