/// <summary>
        /// Default constructor.
        /// </summary>
        public AddImageWindow()
        {
            InitializeComponent();

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();
            this.setWindowSize();
            mapWindow newMapWindow = new mapWindow();
            hotspotWindow newHotWindow = new hotspotWindow();
            big_window1.setHotspotWindow(newHotWindow);
            big_window1.setMapWindow(newMapWindow);
        }
 internal void setParentWindow(hotspotWindow hotspotWindow)
 {
     parentWindow = hotspotWindow;
 }
        //Open the hotspot window
        private void hotspot_Click(object sender, RoutedEventArgs e)
        {
            if (!hotspotWinOpened)
            {
                newHotspotWindw.Show();
                newHotspotWindw.hotspot.setImagePath(imageName);
                newHotspotWindw.hotspot.showImage();
                newHotspotWindw.hotspot.LoadHotspots();
                hotspotWinOpened = true;
            }
            else
            {
                newHotspotWindw = new hotspotWindow();
                newHotspotWindw.hotspot.setImagePath(imageName);

                newHotspotWindw.Show();
                newHotspotWindw.hotspot.showImage();
                newHotspotWindw.hotspot.LoadHotspots();

            }
        }
 public void setHotspotWindow(hotspotWindow window)
 {
     newHotspotWindw = window;
 }