Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AddContactForm.xaml.cs
1using System;
2using System.Windows;
3using System.Windows.Controls;
5
7{
11 public partial class AddContactForm : Window
12 {
13 public AddContactForm()
14 {
16 }
17
18 private void CancelButton_Click(object Sender, RoutedEventArgs e)
19 {
20 this.DialogResult = false;
21 }
22
23 private void AddButton_Click(object Sender, RoutedEventArgs e)
24 {
25 this.DialogResult = true;
26 }
27
28 private void ContactJID_TextChanged(object Sender, TextChangedEventArgs e)
29 {
30 this.AddButton.IsEnabled = XmppClient.BareJidRegEx.IsMatch(this.ContactJID.Text);
31 }
32
33 }
34}
Interaction logic for AddContactForm.xaml
void InitializeComponent()
InitializeComponent
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