Example #1
0
 public Chart()
 {
     _xAxis = new XAxis();
     _yAxis = new YAxis();
     _Content = new Content();
     _CommentText = new CommentText();
 }
 private void videoButton_Click(object sender, RoutedEventArgs e)
 {
     if (displayingContent != Content.Video)
     {
         ((Storyboard)Resources["hideInfo"]).Begin();
         ((Storyboard)Resources["hideCard"]).Begin();
         ((Storyboard)Resources["showVideo"]).Begin();
         ((Storyboard)Resources["hidePanorama"]).Begin();
         displayingContent = Content.Video;
     }
     video.CloseVideo();
     video.StartVideo();
 }
 private void infoButton_Click(object sender, RoutedEventArgs e)
 {
     if (displayingContent != Content.Info)
     {
         ((Storyboard)Resources["showInfo"]).Begin();
         ((Storyboard)Resources["hideCard"]).Begin();
         ((Storyboard)Resources["hideVideo"]).Begin();
         ((Storyboard)Resources["hidePanorama"]).Begin();
         displayingContent = Content.Info;
     }
 }
        public void Show(object tag)
        {
            ((Storyboard)Resources["show"]).Begin();
            displayingContent = Content.Info;
            showHideEventTag = tag;
            info.UpdateControls();
            video.UpdateControls();

            //hide panorama button if needed
            if (PanoramaImage.ToString().Contains("none.png"))
            {
                panoramaButton.Visibility = System.Windows.Visibility.Hidden;
            }
            else
            {
                panoramaButton.Visibility = System.Windows.Visibility.Visible;
            }
        }