// Create the web browser content to display the force directed graph of the associations of the class.
        private void GenerateForceDirectedGraph(CSClass csClass)
        {
            string path = @"..\..\Resources\ForceDirectedGraph.html";

            D3WebDocumentWriter.CreateJSDocumentForClass(path, csClass);

            // Navigate to the generated content using web browser control.
            webBrowser.Navigate(new Uri(String.Format("file:///{0}/{1}", Directory.GetCurrentDirectory(), path)));
        }
Beispiel #2
0
        private void BTNAssociations_Click(object sender, RoutedEventArgs e)
        {
            ScatterPlot1.IsEnabled  = false;
            ScatterPlot1.Visibility = Visibility.Hidden;

            Histogram1.IsEnabled  = false;
            Histogram1.Visibility = Visibility.Hidden;
            BTNToggleAssociatonsLOC.Visibility = Visibility.Hidden;

            BTNScatterPlot.IsEnabled        = true;
            BTNRowChart.IsEnabled           = true;
            BTNForceDirectedGraph.IsEnabled = false;

            string path = @"..\..\Resources\ForceDirectedGraph.html";

            D3WebDocumentWriter.CreateJSDocument(path);

            webBrowser.Visibility = Visibility.Visible;
            webBrowser.Navigate(new Uri(String.Format("file:///{0}/{1}", Directory.GetCurrentDirectory(), path)));
        }