Esempio n. 1
0
        void item_Click(object sender, RoutedEventArgs e)
        {
            selected_group = ((Group)((MenuItem)sender).Tag);
            SelectedGroupLabel.Content = selected_group.ToString();
            NameTextBox.Text = ((MenuItem)sender).Header.ToString();

        }
Esempio n. 2
0
 private void GroupList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (((ListView)sender).SelectedItem != null)
     {
         selected_group = ((Group)((ListView)sender).SelectedItem);
         SelectedGroupLabel.Content = selected_group.ToString();
     }
 }