Click here to Skip to main content
12,445,916 members (64,923 online)
Click here to Skip to main content

Stats

111.8K views
6 downloads
49 bookmarked
Posted

Mole II for WPF

, , , 31 Dec 2007 CPOL
Introduces the second version of a very useful and educational debugger visualizer for WPF developers.
Mole_Visualizer_2_1_1_VS2008_SourceAndTestProject.zip
Mole_Visualizer_2_1_1_VS2005_SourceAndTestProject.zip
Mole_Visualizer_2_1_1_VS2005_Release.zip
Mole_Visualizer_2_1_1_VS2008_Release.zip
Mole.Visualizer.dll
Mole.Visualizer
Custom Controls
Data Source
Image Processing
Data
Debugger Visualizer
Enums Constants
Event Args
Extended Controls
Images
MoleVisualUnavailable.gif
Mole.Visualizer.csi
Mole.Visualizer.suo
Mole.Visualizer.vbproj.user
My Project
Application.myapp
Settings
Visualizer UI
XSLT
Mole.TestBench
bach.jpg
Mole.TestBench.csi
Mole.TestBench.suo
My Project
Mole.Visualizer.dll
bach.jpg
Mole.TestBench.csi
Mole.TestBench.suo
MoleVisualUnavailable.gif
Mole.Visualizer.csi
Mole.Visualizer.suo
Mole.Visualizer.vbproj.user
Application.myapp
Mole.Visualizer.dll
MoleVisualUnavailable.gif
Mole.Visualizer.csi
Mole.Visualizer.suo
Mole.Visualizer.vbproj.user
Application.myapp
bach.jpg
Mole.TestBench.csi
Mole.TestBench.suo
Mole.Visualizer.dll
MoleVisualUnavailable.gif
Mole.Visualizer.csi
Mole.Visualizer.suo
Mole.Visualizer.vbproj.user
Application.myapp
bach.jpg
Mole.TestBench.csi
Mole.TestBench.suo
Mole.Visualizer.dll
MoleVisualUnavailable.gif
Mole.Visualizer.csi
Mole.Visualizer.suo
Mole.Visualizer.vbproj.user
Application.myapp
bach.jpg
Mole.TestBench.csi
Mole.TestBench.suo
Mole.Visualizer.dll
MoleVisualUnavailable.gif
Mole.Visualizer.csi
Mole.Visualizer.suo
Mole.Visualizer.vbproj.user
Application.myapp
bach.jpg
Mole.TestBench.csi
Mole.TestBench.suo
Imports System.Runtime.Serialization
'
<Serializable()> _
Public NotInheritable Class TransferDataRequest

#Region " Declarations "

    Private _bolClearDrillingOperation As Boolean = False
    Private _enumTransferDataRequestType As TransferDataRequestType
    Private _enumTransferDataTreeTarget As TransferDataTreeTarget
    Private _intLastDrillingOperationId As Integer
    Private _intMaxRowsInCollectionData As Integer
    Private _intOriginalSelectedElementId As Integer
    Private _strPropertyNameToDrill As String = String.Empty

#End Region

#Region " Properties "

    ''' <summary>
    ''' Allows this request to clear previous drilling operations as part of this request.
    ''' </summary>
    Public ReadOnly Property ClearDrillingOperation() As Boolean
        Get
            Return _bolClearDrillingOperation
        End Get
    End Property

    ''' <summary>
    ''' This is the Id that was returned from the last drilling operation.  This is only used when continual drilling operations are being requested.
    ''' </summary>
    Public Property LastDrillingOperationId() As Integer
        Get
            Return _intLastDrillingOperationId
        End Get
        Set(ByVal Value As Integer)
            _intLastDrillingOperationId = Value
        End Set
    End Property

    ''' <summary>
    ''' Maximum rows that will be returned from the data source for all collections
    ''' </summary>
    Public ReadOnly Property MaxRowsInCollectionData() As Integer
        Get
            Return _intMaxRowsInCollectionData
        End Get
    End Property

    ''' <summary>
    ''' This is the Id of the element that was selected in the Visual Tree or Logical Tree view control.
    ''' </summary>
    Public Property OriginalSelectedElementId() As Integer
        Get
            Return _intOriginalSelectedElementId
        End Get
        Set(ByVal Value As Integer)
            _intOriginalSelectedElementId = Value
        End Set
    End Property

    ''' <summary>
    ''' What property name should be looked up.
    ''' </summary>
    Public ReadOnly Property PropertyNameToDrill() As String
        Get
            Return _strPropertyNameToDrill
        End Get
    End Property

    ''' <summary>
    ''' What type of transfer request is this
    ''' </summary>
    Public ReadOnly Property TransferDataRequestType() As TransferDataRequestType
        Get
            Return _enumTransferDataRequestType
        End Get
    End Property

    ''' <summary>
    ''' What is the target of this request.  This value determines which object lookup dictionary the visualizer object source will use.
    ''' </summary>
    Public ReadOnly Property TransferDataTreeTarget() As TransferDataTreeTarget
        Get
            Return _enumTransferDataTreeTarget
        End Get
    End Property

#End Region

#Region " Constructor "

    Public Sub New(ByVal bolClearDrillingOperation As Boolean, ByVal enumTransferDataRequestType As TransferDataRequestType, ByVal enumTransferDataTreeTarget As TransferDataTreeTarget, ByVal intOriginalSelectedElementId As Integer)
        _bolClearDrillingOperation = bolClearDrillingOperation
        _enumTransferDataRequestType = enumTransferDataRequestType
        _enumTransferDataTreeTarget = enumTransferDataTreeTarget
        _intOriginalSelectedElementId = intOriginalSelectedElementId

    End Sub

    Public Sub New(ByVal bolClearDrillingOperation As Boolean, ByVal enumTransferDataRequestType As TransferDataRequestType, ByVal enumTransferDataTreeTarget As TransferDataTreeTarget, ByVal intOriginalSelectedElementId As Integer, ByVal intLastDrillingOperationId As Integer, ByVal strPropertyNameToDrill As String, ByVal intMaxRowsInCollectionData As Integer)
        _bolClearDrillingOperation = bolClearDrillingOperation
        _enumTransferDataRequestType = enumTransferDataRequestType
        _enumTransferDataTreeTarget = enumTransferDataTreeTarget
        _intOriginalSelectedElementId = intOriginalSelectedElementId
        _intLastDrillingOperationId = intLastDrillingOperationId
        _strPropertyNameToDrill = strPropertyNameToDrill
        _intMaxRowsInCollectionData = intMaxRowsInCollectionData

    End Sub

#End Region

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Authors

Andrew Smith
Architect Infragistics, Inc.
United States United States
Andrew currently works as an architect for Infragistics working with windows forms and WPF. You can check out his blog here.

Josh Smith
Software Developer (Senior) Cynergy Systems
United States United States
Josh creates software, for iOS and Windows.

He works at Cynergy Systems as a Senior Experience Developer.

Read his iOS Programming for .NET Developers[^] book to learn how to write iPhone and iPad apps by leveraging your existing .NET skills.

Use his Master WPF[^] app on your iPhone to sharpen your WPF skills on the go.

Check out his Advanced MVVM[^] book.

Visit his WPF blog[^] or stop by his iOS blog[^].

Karl Shifflett
Architect Infragistics
United States United States

I’m a passionate Platform Architect at Infragistics.

I’m a long-time WPF-Prism fanatic who enjoys writing developer tools and line of business applications.

My current front end passions are: XAML platforms (Xamarin.Forms, Xamarin, UWP, and WPF), Electron, ES2015 (ES6), Node.js, Aurelia, and AngularJS (Angular 1.5.x).

For the back end I use what is appropriate for the project: SQL Server and ASP.NET WebAPI, MongoDB, Express, Azure, Firebase, etc.

I am very pragmatic software engineer and strive to write simple, maintainable, and testable code. Simple code allows for solving complex problems in a maintainable way.

My Blog

My Github Repros

My YouTube Videos

Just a grain of sand on the worlds beaches.


You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 31 Dec 2007
Article Copyright 2007 by Andrew Smith, Josh Smith, Karl Shifflett
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid