Beispiel #1
0
 private void LBC_PreviewMouseRightButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (LBC.SelectedIndex >= 0)
     {
         if (ID == chats[LBC.SelectedIndex].IdOfCreator)
         {
             PeopleInChat PIC = new PeopleInChat(chats[LBC.SelectedIndex]);
             PIC.ShowDialog();
         }
         else
         {
             MessageBox.Show("You aren't owner of this chat", "Access denied");
         }
     }
 }
Beispiel #2
0
        private void NewChat_Click(object sender, RoutedEventArgs e)
        {
            PeopleInChat PIC = new PeopleInChat(ID);

            PIC.ShowDialog();
        }