Exemplo n.º 1
0
        private void Btn_Ajouter(object sender, RoutedEventArgs e)
        {
            string table = lblTables.Content as string;
            Window a;

            a = new PageAjouterChatRoom();
            a.Show();
        }
Exemplo n.º 2
0
 private void Btn_Modifier(object sender, RoutedEventArgs e)
 {
     if (Lv_chat.SelectedItem != null)
     {
         string table = lblTables.Content as string;
         Cour   c     = Lv_chat.SelectedItem as Cour;
         Window a     = new PageAjouterChatRoom(c.ChatRoom)
         {
             Title = "Modifier ChatRoom",
         };
         a.Show();
     }
     else
     {
         Erreur er = new Erreur("Veuillez selectionner une ChatRoom pour pouvoir le modifier");
         er.Show();
     }
 }