private void ClearFields() { LastName.Text = ""; FirstName.Text = ""; MiddleName.Text = ""; Address.Text = ""; Municipality.Text = ""; ZipCode.Text = ""; DriversLicense.Text = ""; StateId.Text = ""; StateId.Focus(); }
/// <summary> /// Initializes a new instance of the <see cref="BallotRequestPage"/> class. /// Constructor /// </summary> /// <param name="ui"> /// the UIHandler for this UI /// </param> /// <param name="parent"> /// the frame in which this page is displayed /// </param> public BallotRequestPage(UiHandler ui, Frame parent) { _ui = ui; _parent = parent; _ui.BallotRequestPage = this; InitializeComponent(); checkValidityButton.IsEnabled = false; WaitingLabel.Content = string.Empty; StateId.Focus(); Blocked = false; Waiting = false; IPLabel.Content = IPLabel.Content.ToString().Replace("255.255.255.255", _ui.IdentifyingString()); }