コード例 #1
0
        private FunctionCallInspectorForm(FunctionCall aFunctionCall) : this()
        {
            _model = new TreeModel();
            treeViewAdv1.Model = _model;

            _presenter = new FunctionCallInspectorPresenter(this, aFunctionCall);
        }
コード例 #2
0
ファイル: TreeViewOutput.cs プロジェクト: subTee/Deviare2
 private void DisplayFunctionCall(Func<FunctionCall, Node> parentNodeFor, FunctionCall aFunctionCall)
 {
     lock (_dataLock)
     {
         AddNodeFor(aFunctionCall, parentNodeFor(aFunctionCall));
     }
 }
コード例 #3
0
        public FunctionCallInspectorPresenter(IFunctionCallInspectorView aView, FunctionCall functionCall)
        {
            _view = aView;

            DisplayFunctionName(functionCall);
            DisplayInspectedParameters(functionCall.Parameters);
        }
コード例 #4
0
ファイル: OutputNode.cs プロジェクト: subTee/Deviare2
 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;
 }
コード例 #5
0
ファイル: TreeViewOutput.cs プロジェクト: subTee/Deviare2
        private void AddNodeFor(FunctionCall aFunctionCall, Node parentNode)
        {
            var functionCallNode = new OutputNode(aFunctionCall);

            parentNode.Nodes.Add(functionCallNode);
        }
コード例 #6
0
 public void FunctionCallDoubleClicked(FunctionCall aFunctionCall)
 {
     _view.InspectFunctionCall(aFunctionCall);
 }
コード例 #7
0
ファイル: OutputNode.cs プロジェクト: subTee/Deviare2
 public OutputNode(FunctionCall aFunctionCall)
 {
     InitializeProperties(aFunctionCall);
 }
コード例 #8
0
ファイル: TreeViewOutput.cs プロジェクト: subTee/Deviare2
 public void UpdateRootFunctionCall(FunctionCall aFunctionCall)
 {
     OutputNodes.First(node => node.FunctionMatches(aFunctionCall)).UpdateFrom(aFunctionCall);
 }
コード例 #9
0
ファイル: TreeViewOutput.cs プロジェクト: subTee/Deviare2
 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;
 }
コード例 #10
0
ファイル: TreeViewOutput.cs プロジェクト: subTee/Deviare2
 public void DisplayNestedFunctionCall(FunctionCall aFunctionCall)
 {
     DisplayFunctionCall(FindParentFunctionCallFor, aFunctionCall);
 }
コード例 #11
0
ファイル: FunctionCall.cs プロジェクト: subTee/Deviare2
 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;
 }
コード例 #12
0
ファイル: OutputNode.cs プロジェクト: subTee/Deviare2
 public bool FunctionMatches(FunctionCall aFunctionCall)
 {
     return FunctionCall == aFunctionCall;
 }
コード例 #13
0
 private void DisplayFunctionName(FunctionCall functionCall)
 {
     _view.DisplayFunctionName(functionCall.ModuleName, functionCall.FunctionName);
 }
コード例 #14
0
ファイル: DeviareConsoleForm.cs プロジェクト: subTee/Deviare2
 public void UpdateRootFunctionCall(FunctionCall aFunctionCall)
 {
     AddTreeViewUpdateJob(treeViewOutput, () => treeViewOutput.UpdateRootFunctionCall(aFunctionCall));
 }
コード例 #15
0
ファイル: DeviareConsoleForm.cs プロジェクト: subTee/Deviare2
 public void InspectFunctionCall(FunctionCall aFunctionCall)
 {
     FunctionCallInspectorForm.Inspect(aFunctionCall);
 }
コード例 #16
0
ファイル: DeviareConsoleForm.cs プロジェクト: subTee/Deviare2
 public void DisplayNestedFunctionCall(FunctionCall aFunctionCall)
 {
     AddTreeViewUpdateJob(treeViewOutput, () => treeViewOutput.DisplayNestedFunctionCall(aFunctionCall));
 }
コード例 #17
0
 public static void Inspect(FunctionCall aFunctionCall)
 {
     var aForm = new FunctionCallInspectorForm(aFunctionCall);
     aForm.ShowDialog();
 }
コード例 #18
0
 private void Dispatch(INktHookCallInfo aCallInfo, FunctionCall aFunctionCall)
 {
     if (IsRootCall(aCallInfo))
     {
         _dispatchDispatchRootCall(aFunctionCall);
         return;
     }
     
     _dispatchDispatchChildCall(aFunctionCall);
 }
コード例 #19
0
ファイル: OutputNode.cs プロジェクト: subTee/Deviare2
 public void UpdateFrom(FunctionCall aFunctionCall)
 {
     InitializeProperties(aFunctionCall);
 }
コード例 #20
0
ファイル: TreeViewOutput.cs プロジェクト: subTee/Deviare2
 public void DisplayRootFunctionCall(FunctionCall aFunctionCall)
 {
     DisplayFunctionCall(functionCall => _model.Root, aFunctionCall);
 }