/// <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);
        }
        /// <summary>
        /// Open a control to handle map hotspot processing
        /// </summary>
        private void mapButton_Click(object sender, RoutedEventArgs e)
        {
            if (!mapWinOpened)
            {
                newMapWindow.mapControl.setBigWindow(this);
                newMapWindow.Show();

                newMapWindow.mapControl.showMap();
                newMapWindow.mapControl.loadPositions();
                mapWinOpened = true;
            }
            else
            {
                newMapWindow = new mapWindow();
                newMapWindow.mapControl.setBigWindow(this);
                newMapWindow.Show();

                newMapWindow.mapControl.showMap();
                newMapWindow.mapControl.loadPositions();
            }
        }
示例#3
0
 public void setParentWindow(mapWindow parent)
 {
     newMapWindow = parent;
 }
 public void setMapWindow(mapWindow window)
 {
     newMapWindow = window;
 }