Esempio n. 1
0
 private void ConnectToServer_Click(object sender, RoutedEventArgs e)
 {
     this.m_ConnectDialog = new InputDialog(this, "Connect...", "Enter server address (127.0.0.1[:port]):", "Connect", ConnectDialog_Click);
     this.m_ConnectDialog.ShowDialog();
 }
Esempio n. 2
0
 private void miChangeNickname_Click(object sender, RoutedEventArgs e)
 {
     if(this.annoy != null) this.annoy.Stop();
     this.m_NicknameDialog = new InputDialog(this, "Nickname...", "Enter new nickname:", "Change", NicknameDialog_Click);
     this.m_NicknameDialog.ShowDialog();
 }
Esempio n. 3
0
 private void ChangeStatus_Click(object sender, RoutedEventArgs e)
 {
     String status = ((MenuItem)sender).Header.ToString().ToLower();
     if (status == "custom...")
     {
         this.m_StatusDialog = new InputDialog(this, "Status...", "Enter new status message:", "Change", StatusDialog_Click);
         this.m_StatusDialog.ShowDialog();
         return;
     }
     this.m_contacts.Status = status;
 }
Esempio n. 4
0
 private void Chat_Click(object sender, RoutedEventArgs e)
 {
     this.m_ChatConnectDialog = new InputDialog(this, "Connect...", "Enter client address (127.0.0.1):", "Chat", ChatConnectDialog_Click);
     this.m_ChatConnectDialog.ShowDialog();
 }