예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CheckMasterPasswordDialog"/> class.
 /// constructor
 /// </summary>
 /// <param name="ui">
 /// the UIHandler for this UI
 /// </param>
 public CheckMasterPasswordDialog(UiHandler ui, string reason)
 {
     InitializeComponent();
     _ui = ui;
     PwTextbox.Focus();
     Title = "Master Password";
     AuthenticationReason.Text = reason;
 }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="ui">the UIHandler for this UI</param>
 public CheckMasterPasswordDialog(UiHandler ui)
 {
     InitializeComponent();
     _ui = ui;
     Focus();
     PwTextbox.Focus();
     OKButton.IsEnabled = false;
     Title = "Master Password";
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="parent"> the frame this dialog was shown over</param>
 /// <param name="ip">the ip address of the Manager</param>
 /// <param name="waitingForManagerPage">the Page this dialog was shown over</param>
 public AcceptManagerDialog(Frame parent, IPEndPoint ip, WaitingForManagerPage waitingForManagerPage)
 {
     InitializeComponent();
     _parent = parent;
     _waitingForManagerPage = waitingForManagerPage;
     ManagerLabel.Content   = ip.Address.ToString();
     Focus();
     PwTextbox.Focus();
     OKButton.IsEnabled = false;
     Title = "Accept Manager";
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="ip">the IP address of the station to accept</param>
 /// <param name="ui">the UIHandler for this UI</param>
 public AcceptStationDialog(IPEndPoint ip, UiHandler ui)
 {
     _ui = ui;
     _ip = ip;
     InitializeComponent();
     StationLabel.Content = ip.Address.ToString();
     Focus();
     PwTextbox.Focus();
     OKButton.IsEnabled = false;
     Title = "Accept Station";
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptStationDialog"/> class.
 /// Constructor
 /// </summary>
 /// <param name="ip">
 /// the IP address of the station to accept
 /// </param>
 /// <param name="ui">
 /// the UIHandler for this UI
 /// </param>
 public AcceptStationDialog(IPEndPoint ip, UiHandler ui)
 {
     _ui = ui;
     _ip = ip;
     InitializeComponent();
     StationLabel.Content = StationLabel.Content.ToString().Replace("NAME", _ui.IdentifyingStringForStation(ip));
     Activate();
     PwTextbox.Focus();
     OKButton.IsEnabled = false;
     Title = "Accept Station";
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AcceptManagerDialog"/> class.
 /// Constructor
 /// </summary>
 /// <param name="parent">
 /// the frame this dialog was shown over
 /// </param>
 /// <param name="ip">
 /// the ip address of the Manager
 /// </param>
 /// <param name="waitingForManagerPage">
 /// the Page this dialog was shown over
 /// </param>
 public AcceptManagerDialog(Frame parent, string name, WaitingForManagerPage waitingForManagerPage)
 {
     InitializeComponent();
     _parent = parent;
     _waitingForManagerPage = waitingForManagerPage;
     ManagerLabel.Content   = ManagerLabel.Content.ToString().Replace("NAME", name);
     Activate();
     PwTextbox.Focus();
     OKButton.IsEnabled = false;
     Title = "Accept Manager";
 }