Пример #1
0
        //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;
            }
        }
Пример #2
0
        //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);
        }