public InfoWindow(Chair c) { InitializeComponent(); chair = c; bitmap = Initialize_bitmap(); Info.Text = chair.RenderResponse(); DImage.Source = bitmap; }
private void chairsList_SelectionChanged(object sender, SelectionChangedEventArgs e) { Chair c = (Chair)chairsList.SelectedItem; if (c != null) { BitmapImage bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.UriSource = new Uri(c.ImagePath, UriKind.Absolute); bitmap.EndInit(); last_item.Source = bitmap; last_item_label.Text = c.Name_of_chair; InfoWindow taskWindow = new InfoWindow(c); taskWindow.Owner = this; taskWindow.Show(); } }