private void ResetCardForm() { if (tbMemberId.InvokeRequired == false) { Image frontImage = (Image)blankCard.Clone(); Image backImage = (Image)blankCard.Clone(); if (Properties.Settings.Default.Orientation.Equals("Portrait")) { frontImage.RotateFlip(RotateFlipType.Rotate90FlipNone); backImage.RotateFlip(RotateFlipType.Rotate270FlipNone); } pbCardBack.Image = frontImage; pbCardFront.Image = backImage; tbMemberId.Text = ""; tbCardId.Text = ""; tbMagId.Text = ""; } else { ResetCardFormDelegate reset = new ResetCardFormDelegate(ResetCardForm); this.Invoke(reset); } }
private void ResetCardForm() { if (tbMemberId.InvokeRequired == false) { Image frontImage = (Image)blankCard.Clone(); Image backImage = (Image)blankCard.Clone(); if (Properties.Settings.Default.Orientation.Equals("Portrait")) { frontImage.RotateFlip(RotateFlipType.Rotate90FlipNone); backImage.RotateFlip(RotateFlipType.Rotate270FlipNone); } pbCardBack.Image = frontImage; pbCardFront.Image = backImage; tbMemberId.Text = ""; tbCardId.Text = ""; tbMagId.Text = ""; } else { ResetCardFormDelegate reset = new ResetCardFormDelegate(ResetCardForm); this.Invoke(reset); } }