Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AddAffiliateForm.xaml.cs
1using System.Windows;
2using System.Windows.Controls;
4
6{
10 public partial class AddAffiliateForm : Window
11 {
12 public AddAffiliateForm()
13 {
15 }
16
17 private void ComboBox_SelectionChanged(object Sender, SelectionChangedEventArgs e)
18 {
19 this.FormChanged();
20 }
21
22 private void Jid_TextChanged(object Sender, TextChangedEventArgs e)
23 {
24 this.FormChanged();
25 }
26
27 private void FormChanged()
28 {
29 this.AddButton.IsEnabled = XmppClient.BareJidRegEx.IsMatch(this.Jid.Text) && this.Affiliation.SelectedIndex >= 0;
30 }
31
32 public void AddButton_Click(object Sender, RoutedEventArgs e)
33 {
34 this.DialogResult = true;
35 }
36
37 public void CancelButton_Click(object Sender, RoutedEventArgs e)
38 {
39 this.DialogResult = false;
40 }
41 }
42}
Interaction logic for AddAffiliateForm.xaml
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Definition: XmppClient.cs:59
static readonly Regex BareJidRegEx
Regular expression for Bare JIDs
Definition: XmppClient.cs:188