示例#1
0
 /// <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());
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WaitingForManagerPage"/> class.
 /// </summary>
 /// <param name="parent">
 /// The parent.
 /// </param>
 /// <param name="ui">
 /// The ui.
 /// </param>
 public WaitingForManagerPage(Frame parent, UiHandler ui)
 {
     _parent = parent;
     _ui     = ui;
     InitializeComponent();
     Window.GetWindow(_parent);
     IPLabel.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                               new Action(delegate { IPLabel.Content = "This is Station " + _ui.IdentifyingString(); }));
     _ui.WaitingForManagerPage = this;
 }