private void Mapa4Button_Click(object sender, RoutedEventArgs e) { string trenutni = System.IO.Directory.GetCurrentDirectory(); string putanja = System.IO.Path.Combine(trenutni, "Maps/world-map-big_04.gif"); TempWindow tag = new TempWindow("Mapa4"); ImageBrush imgB = new ImageBrush(); imgB.ImageSource = new BitmapImage(new Uri(putanja, UriKind.Relative)); tag.Map.Background = imgB; tag.Show(); }
private void asiaButton_Click(object sender, RoutedEventArgs e) { string currentDirectory = System.IO.Directory.GetCurrentDirectory(); string path = System.IO.Path.Combine(currentDirectory, "Maps/asia_map.jpg"); TempWindow tag = new TempWindow("ASIA"); ImageBrush imgB = new ImageBrush(); imgB.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri(path, UriKind.Relative)); tag.Map.Background = imgB; tag.Show(); }