예제 #1
0
        void item_Click(object sender, RoutedEventArgs e)
        {
            selected_client = ((Client)((MenuItem)sender).Tag);
            SelectedClientLabel.Content = selected_client.ToString();
            NameTextBox.Text = ((MenuItem)sender).Header.ToString();

        }
예제 #2
0
 private void ClientList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (((ListView)sender).SelectedItem != null)
     {
         selected_client = ((Client)((ListView)sender).SelectedItem);
         SelectedClientLabel.Content = selected_client.ToString();
     }
 }