public InfoWindow(Clima_tech c)
        {
            InitializeComponent();
            tech   = c;
            bitmap = Initialize_bitmap();

            Info.Text     = tech.RenderResponse();
            DImage.Source = bitmap;
        }
Esempio n. 2
0
        private void techsList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Clima_tech c = (Clima_tech)techsList.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_tech;

                InfoWindow taskWindow = new InfoWindow(c);
                taskWindow.Owner = this;

                taskWindow.Show();
            }
        }