C# Class Smrf.NodeXL.ExcelTemplate.SelectionCoordinator

Coordinates the edge and vertex selection between the workbook and the TaskPane.
This class is responsible for selecting edges and vertices in the TaskPane when those edges and vertices are selected in the workbook, and vice versa.
Inheritance: Object
Datei anzeigen Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_bIgnoreSelectionEvents System.Boolean
m_bUpdateEdgeSelectionOnActivation System.Boolean
m_bUpdateGroupSelectionOnActivation System.Boolean
m_bUpdateVertexSelectionOnActivation System.Boolean
m_oEdgeWorksheet Sheet1
m_oGroupTable Microsoft.Office.Tools.Excel.ListObject
m_oGroupVertexWorksheet Sheet6
m_oGroupWorksheet Sheet5
m_oTaskPane TaskPane
m_oThisWorkbook ThisWorkbook
m_oVertexWorksheet Sheet2

Public Methods

Method Description
SelectionCoordinator ( ThisWorkbook thisWorkbook, Sheet1 edgeWorksheet, Microsoft edgeTable, Sheet2 vertexWorksheet, Microsoft vertexTable, Sheet5 groupWorksheet, Microsoft groupTable, Sheet6 groupVertexWorksheet, TaskPane taskPane ) : System

Initializes a new instance of the SelectionCoordinator class.

Protected Methods

Method Description
EdgeTable_Deselected ( Range Target ) : void
EdgeTable_SelectionChange ( Range Target ) : void
EdgeWorksheet_ActivateEvent ( ) : void
GroupTable_Deselected ( Range Target ) : void
GroupTable_SelectionChange ( Range Target ) : void
GroupWorksheet_ActivateEvent ( ) : void
IgnoreTableSelectionChange ( SheetHelper oSheetHelper ) : System.Boolean
OnEdgeOrVertexTableSelectionChange ( System.Boolean bChangeInEdgeTable ) : void
OnEdgeOrVertexWorksheetActivated ( System.Boolean bEdgeWorksheetActivated ) : void
OnGroupTableSelectionChange ( ) : void
OnGroupWorksheetActivated ( ) : void
OnSelectionChangedInGraphEdgeOrVertex ( System.Boolean bProcessEdgeWorksheet ) : void
OnSelectionChangedInGraphGroup ( ) : void
SelectEdgeOrVertexTableRows ( System.Boolean bSelectEdgeTableRows ) : void
SelectGroupTableRows ( ) : void
TaskPane_SelectionChangedInGraph ( Object sender, EventArgs e ) : void
VertexTable_Deselected ( Range Target ) : void
VertexTable_SelectionChange ( Range Target ) : void
VertexWorksheet_ActivateEvent ( ) : void

Private Methods

Method Description
AssertValid ( ) : void

Method Details

EdgeTable_Deselected() protected method

protected EdgeTable_Deselected ( Range Target ) : void
Target Range
return void

EdgeTable_SelectionChange() protected method

protected EdgeTable_SelectionChange ( Range Target ) : void
Target Range
return void

EdgeWorksheet_ActivateEvent() protected method

protected EdgeWorksheet_ActivateEvent ( ) : void
return void

GroupTable_Deselected() protected method

protected GroupTable_Deselected ( Range Target ) : void
Target Range
return void

GroupTable_SelectionChange() protected method

protected GroupTable_SelectionChange ( Range Target ) : void
Target Range
return void

GroupWorksheet_ActivateEvent() protected method

protected GroupWorksheet_ActivateEvent ( ) : void
return void

IgnoreTableSelectionChange() protected method

protected IgnoreTableSelectionChange ( SheetHelper oSheetHelper ) : System.Boolean
oSheetHelper SheetHelper
return System.Boolean

OnEdgeOrVertexTableSelectionChange() protected method

protected OnEdgeOrVertexTableSelectionChange ( System.Boolean bChangeInEdgeTable ) : void
bChangeInEdgeTable System.Boolean
return void

OnEdgeOrVertexWorksheetActivated() protected method

protected OnEdgeOrVertexWorksheetActivated ( System.Boolean bEdgeWorksheetActivated ) : void
bEdgeWorksheetActivated System.Boolean
return void

OnGroupTableSelectionChange() protected method

protected OnGroupTableSelectionChange ( ) : void
return void

OnGroupWorksheetActivated() protected method

protected OnGroupWorksheetActivated ( ) : void
return void

OnSelectionChangedInGraphEdgeOrVertex() protected method

protected OnSelectionChangedInGraphEdgeOrVertex ( System.Boolean bProcessEdgeWorksheet ) : void
bProcessEdgeWorksheet System.Boolean
return void

OnSelectionChangedInGraphGroup() protected method

protected OnSelectionChangedInGraphGroup ( ) : void
return void

SelectEdgeOrVertexTableRows() protected method

protected SelectEdgeOrVertexTableRows ( System.Boolean bSelectEdgeTableRows ) : void
bSelectEdgeTableRows System.Boolean
return void

SelectGroupTableRows() protected method

protected SelectGroupTableRows ( ) : void
return void

SelectionCoordinator() public method

Initializes a new instance of the SelectionCoordinator class.
public SelectionCoordinator ( ThisWorkbook thisWorkbook, Sheet1 edgeWorksheet, Microsoft edgeTable, Sheet2 vertexWorksheet, Microsoft vertexTable, Sheet5 groupWorksheet, Microsoft groupTable, Sheet6 groupVertexWorksheet, TaskPane taskPane ) : System
thisWorkbook ThisWorkbook /// The Excel workbook. ///
edgeWorksheet Sheet1 /// The edge worksheet in the Excel workbook. ///
edgeTable Microsoft /// The edge table on the edge worksheet. ///
vertexWorksheet Sheet2 /// The vertex worksheet in the Excel workbook. ///
vertexTable Microsoft /// The vertex table on the vertex worksheet. ///
groupWorksheet Sheet5 /// The group worksheet in the Excel workbook. ///
groupTable Microsoft /// The group table on the group worksheet. ///
groupVertexWorksheet Sheet6 /// The group-vertex worksheet in the Excel workbook. ///
taskPane TaskPane /// The TaskPane. ///
return System

TaskPane_SelectionChangedInGraph() protected method

protected TaskPane_SelectionChangedInGraph ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void

VertexTable_Deselected() protected method

protected VertexTable_Deselected ( Range Target ) : void
Target Range
return void

VertexTable_SelectionChange() protected method

protected VertexTable_SelectionChange ( Range Target ) : void
Target Range
return void

VertexWorksheet_ActivateEvent() protected method

protected VertexWorksheet_ActivateEvent ( ) : void
return void

Property Details

m_bIgnoreSelectionEvents protected_oe property

protected Boolean,System m_bIgnoreSelectionEvents
return System.Boolean

m_bUpdateEdgeSelectionOnActivation protected_oe property

protected Boolean,System m_bUpdateEdgeSelectionOnActivation
return System.Boolean

m_bUpdateGroupSelectionOnActivation protected_oe property

protected Boolean,System m_bUpdateGroupSelectionOnActivation
return System.Boolean

m_bUpdateVertexSelectionOnActivation protected_oe property

protected Boolean,System m_bUpdateVertexSelectionOnActivation
return System.Boolean

m_oEdgeWorksheet protected_oe property

protected Sheet1,Smrf.NodeXL.ExcelTemplate m_oEdgeWorksheet
return Sheet1

m_oGroupTable protected_oe property

protected Microsoft.Office.Tools.Excel.ListObject m_oGroupTable
return Microsoft.Office.Tools.Excel.ListObject

m_oGroupVertexWorksheet protected_oe property

protected Sheet6,Smrf.NodeXL.ExcelTemplate m_oGroupVertexWorksheet
return Sheet6

m_oGroupWorksheet protected_oe property

protected Sheet5,Smrf.NodeXL.ExcelTemplate m_oGroupWorksheet
return Sheet5

m_oTaskPane protected_oe property

protected TaskPane,Smrf.NodeXL.ExcelTemplate m_oTaskPane
return TaskPane

m_oThisWorkbook protected_oe property

protected ThisWorkbook,Smrf.NodeXL.ExcelTemplate m_oThisWorkbook
return ThisWorkbook

m_oVertexWorksheet protected_oe property

protected Sheet2,Smrf.NodeXL.ExcelTemplate m_oVertexWorksheet
return Sheet2