Ejemplo n.º 1
0
        private void OnSequenceViewerTab(TreeSelectionData selectedData)
        {
            if (!tvController.SelectedNode.HasChildren)
            {
                // if method
                if (tvController.SelectedNode.Value.Text.IndexOf('(') > 0)
                {
                    string methodName = selectedData.MethodName;
                    string typeName = selectedData.TypeName;
                    string nameSpace = selectedData.NameSpace;
                    string assemblyname = selectedData.AssemblyName;

                    labelMethodDescription.Text = methodName;
                    labelTypeName.Text = "Type:" + typeName;
                    labelSelectedAssembly.Text = "Assembly:" + assemblyname;

                    SequenceData data = mainController.GetSequenceData(methodName, typeName, nameSpace, assemblyname);
                    IRenderer renderer = new WPFRenderer();
                    renderer.Export(data);
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Translates the method declaration.
 /// </summary>
 /// <param name="method">The method.</param>
 private void TranslateMethodDeclaration(IMethodDeclaration method)
 {
   if (method != null)
   {
     var body = method.Body as IMethodBody;
     if (body != null)
     {
       SequenceData data = this.populator.BuildGraphFromMethod(method);
       IRenderer renderEngine = new WPFRenderer();
       renderEngine.Export(data);
     }
   }
 }