3using System.Windows.Controls;
16 this.Domain.Text = Domain;
23 this.Title =
"Enter room";
24 this.RoomID.Text = RoomId;
25 this.RoomID.IsReadOnly =
true;
26 this.Domain.Text = Domain;
27 this.Domain.IsReadOnly =
true;
28 this.AddButton.Content =
"Enter";
29 this.AddButton.ToolTip =
"Enter the Room.";
30 this.CancelButton.ToolTip =
"Closes the dialog without entering the room.";
32 this.NickName.Focus();
35 private void CancelButton_Click(
object Sender, RoutedEventArgs e)
37 this.DialogResult =
false;
40 private void AddButton_Click(
object Sender, RoutedEventArgs e)
42 this.DialogResult =
true;
45 private void FormChanged(
object Sender, TextChangedEventArgs e)
47 this.AddButton.IsEnabled =
48 !
string.IsNullOrEmpty(this.RoomID.Text.Trim()) &&
49 !
string.IsNullOrEmpty(this.Domain.Text.Trim()) &&
50 !
string.IsNullOrEmpty(this.NickName.Text.Trim());