private FunctionCallInspectorForm(FunctionCall aFunctionCall) : this()
        {
            _model = new TreeModel();
            treeViewAdv1.Model = _model;

            _presenter = new FunctionCallInspectorPresenter(this, aFunctionCall);
        }
Example #2
0
 private void DisplayFunctionCall(Func<FunctionCall, Node> parentNodeFor, FunctionCall aFunctionCall)
 {
     lock (_dataLock)
     {
         AddNodeFor(aFunctionCall, parentNodeFor(aFunctionCall));
     }
 }
        public FunctionCallInspectorPresenter(IFunctionCallInspectorView aView, FunctionCall functionCall)
        {
            _view = aView;

            DisplayFunctionName(functionCall);
            DisplayInspectedParameters(functionCall.Parameters);
        }
Example #4
0
 private void InitializeProperties(FunctionCall aFunctionCall)
 {
     FunctionCall = aFunctionCall;
     Tid = aFunctionCall.ThreadId;
     ModuleName = aFunctionCall.ModuleName;
     FunctionName = aFunctionCall.FunctionName;
     Order = aFunctionCall.Order;
     Parameters = aFunctionCall.Summary;
     Result = aFunctionCall.Result.FullDescription;
 }
Example #5
0
        private void AddNodeFor(FunctionCall aFunctionCall, Node parentNode)
        {
            var functionCallNode = new OutputNode(aFunctionCall);

            parentNode.Nodes.Add(functionCallNode);
        }
Example #6
0
 public void FunctionCallDoubleClicked(FunctionCall aFunctionCall)
 {
     _view.InspectFunctionCall(aFunctionCall);
 }
Example #7
0
 public OutputNode(FunctionCall aFunctionCall)
 {
     InitializeProperties(aFunctionCall);
 }
Example #8
0
 public void UpdateRootFunctionCall(FunctionCall aFunctionCall)
 {
     OutputNodes.First(node => node.FunctionMatches(aFunctionCall)).UpdateFrom(aFunctionCall);
 }
Example #9
0
 private Node FindParentFunctionCallFor(FunctionCall aFunctionCall)
 {
     var parentNode = _model.Nodes.Cast<OutputNode>().OrderByDescending(node => node.Order).FirstOrDefault(node => node.Tid == aFunctionCall.ThreadId);
     return parentNode ?? _model.Root;
 }
Example #10
0
 public void DisplayNestedFunctionCall(FunctionCall aFunctionCall)
 {
     DisplayFunctionCall(FindParentFunctionCallFor, aFunctionCall);
 }
Example #11
0
 public bool Equals(FunctionCall other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Order == Order && other.ThreadId == ThreadId && other.ModuleName == ModuleName && other.FunctionName == FunctionName;
 }
Example #12
0
 public bool FunctionMatches(FunctionCall aFunctionCall)
 {
     return FunctionCall == aFunctionCall;
 }
 private void DisplayFunctionName(FunctionCall functionCall)
 {
     _view.DisplayFunctionName(functionCall.ModuleName, functionCall.FunctionName);
 }
Example #14
0
 public void UpdateRootFunctionCall(FunctionCall aFunctionCall)
 {
     AddTreeViewUpdateJob(treeViewOutput, () => treeViewOutput.UpdateRootFunctionCall(aFunctionCall));
 }
Example #15
0
 public void InspectFunctionCall(FunctionCall aFunctionCall)
 {
     FunctionCallInspectorForm.Inspect(aFunctionCall);
 }
Example #16
0
 public void DisplayNestedFunctionCall(FunctionCall aFunctionCall)
 {
     AddTreeViewUpdateJob(treeViewOutput, () => treeViewOutput.DisplayNestedFunctionCall(aFunctionCall));
 }
 public static void Inspect(FunctionCall aFunctionCall)
 {
     var aForm = new FunctionCallInspectorForm(aFunctionCall);
     aForm.ShowDialog();
 }
Example #18
0
 private void Dispatch(INktHookCallInfo aCallInfo, FunctionCall aFunctionCall)
 {
     if (IsRootCall(aCallInfo))
     {
         _dispatchDispatchRootCall(aFunctionCall);
         return;
     }
     
     _dispatchDispatchChildCall(aFunctionCall);
 }
Example #19
0
 public void UpdateFrom(FunctionCall aFunctionCall)
 {
     InitializeProperties(aFunctionCall);
 }
Example #20
0
 public void DisplayRootFunctionCall(FunctionCall aFunctionCall)
 {
     DisplayFunctionCall(functionCall => _model.Root, aFunctionCall);
 }