//This opens the window for adding text to the hotspot private void AddText_Click(object sender, RoutedEventArgs e) { if (!newWindowIsOpened) { hotspotAddText newText = new hotspotAddText(); newText.Show(); newText.setParentControl(this); newWindowIsOpened = true; } }
//This opens the window for modifying text to the hotspot private void ModifyText(String caption, String description) { hotspotAddText newText = new hotspotAddText(); newText.title.Text = caption; newText.Text.Text = description; newText.Show(); newText.setParentControl(this); }