//This opens the window for adding video to the hotspot
        private void AddVideo_Click(object sender, RoutedEventArgs e)
        {
            if (!newWindowIsOpened)
            {
                addHotspotMix newContents = new addHotspotMix();
                newContents.Show();

                newContents.setParentControl(this);
                newWindowIsOpened = true;
                newContents.hotspotContent = 3;
            }
        }
 private void ModifyFileAndText(String caption, String url,String text, int contentCatogory)
 {
     addHotspotMix newMix = new addHotspotMix();
     newMix.title.Text = caption;
     newMix.Text.Text = text;
     newMix.url_tag.Text = url;
     newMix.Show();
     newMix.setParentControl(this);
     newMix.contentPath = url;
     newMix.hotspotContent = contentCatogory;//need to set the contentPath as to display the correct URL info
 }
        private void AddTextAndImage_Click(object sender, RoutedEventArgs e)
        {
            if (!newWindowIsOpened)
            {
                addHotspotMix newMix = new addHotspotMix();
                newMix.Show();
                newMix.hotspotContent = 2;

                newMix.setParentControl(this);
                newWindowIsOpened = true;
            }
        }