Exemple #1
0
 private void TeamNameChoice_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (TeamNameChoice.SelectedIndex != -1)
     {
         string image = tImpl.GetAllyTeamImage(TeamNameChoice.SelectedValue.ToString());
         displayTeamImage.Stretch = Stretch.Fill;
         displayTeamImage.Source  = (new BitmapImage(new Uri(System.IO.Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + "\\Sources\\" + image + ".png")));
     }
 }
Exemple #2
0
        private void TeamListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            string team = TeamListBox.SelectedItem.ToString();

            ShowTeamMemberLists(team);
            string image = tImpl.GetAllyTeamImage(TeamListBox.SelectedValue.ToString());

            TeamImage.Stretch = Stretch.Fill;
            TeamImage.Source  = (new BitmapImage(new Uri(System.IO.Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + "\\Sources\\" + image + ".png")));
        }