C# Класс Smrf.NodeXL.ExcelTemplate.CreateSubgraphImagesDialog

Dialog that creates a subgraph image for each of a graph's vertices.
Call Form.ShowDialog() to run the dialog. All image creation is performed within the dialog.

A SubgraphImageCreator object does most of the work. The image creation is done asynchronously, so it doesn't hang the UI and can be cancelled by the user. However, the optional insertion of thumbnail images into the vertex worksheet is done synchronously, because you can't update the UI in Windows from a background thread. During thumbnail insertion, all dialog controls are disabled and the UI doesn't respond to user input.

Наследование: ExcelTemplateForm
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_eMode DialogMode
m_eState DialogState
m_oCreateSubgraphImagesDialogUserSettings CreateSubgraphImagesDialogUserSettings
m_oSelectedVertexNames ICollection
m_oSubgraphImageCreator SubgraphImageCreator
m_oWorkbook Microsoft.Office.Interop.Excel.Workbook

Открытые методы

Метод Описание
AssertValid ( ) : void
CreateSubgraphImagesDialog ( DialogMode mode, Microsoft workbook, ICollection selectedVertexNames ) : System

Initializes a new instance of the class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
EnableControls ( ) : void
GetSelectedVertices ( IGraph oGraph, ICollection oSelectedVertexNames ) : ICollection
OnClosed ( EventArgs e ) : void
OnImageCreationCompleted ( RunWorkerCompletedEventArgs e ) : void
OnLoad ( EventArgs e ) : void
ReadWorkbook ( Microsoft oWorkbook ) : IGraph
StartImageCreation ( ) : void

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnEventThatRequiresControlEnabling ( object sender, EventArgs e ) : void
SubgraphImageCreator_ImageCreationCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
SubgraphImageCreator_ImageCreationProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
btnCreate_Click ( object sender, EventArgs e ) : void

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

CreateSubgraphImagesDialog() публичный Метод

Initializes a new instance of the class.
public CreateSubgraphImagesDialog ( DialogMode mode, Microsoft workbook, ICollection selectedVertexNames ) : System
mode DialogMode /// Indicates the mode in which the dialog is being used. ///
workbook Microsoft /// Workbook containing the graph data. If is /// , the workbook isn't used and this /// parameter must be null. ///
selectedVertexNames ICollection /// Collection of zero or more vertex names corresponding to the selected /// rows in the vertex worksheet. If is , the collection isn't used and this /// parameter must be null. ///
Результат System

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

DoDataExchange() защищенный Метод

protected DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
bFromControls System.Boolean
Результат System.Boolean

EnableControls() защищенный Метод

protected EnableControls ( ) : void
Результат void

GetSelectedVertices() защищенный Метод

protected GetSelectedVertices ( IGraph oGraph, ICollection oSelectedVertexNames ) : ICollection
oGraph IGraph
oSelectedVertexNames ICollection
Результат ICollection

OnClosed() защищенный Метод

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
Результат void

OnImageCreationCompleted() защищенный Метод

protected OnImageCreationCompleted ( RunWorkerCompletedEventArgs e ) : void
e System.ComponentModel.RunWorkerCompletedEventArgs
Результат void

OnLoad() защищенный Метод

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

ReadWorkbook() защищенный Метод

protected ReadWorkbook ( Microsoft oWorkbook ) : IGraph
oWorkbook Microsoft
Результат IGraph

StartImageCreation() защищенный Метод

protected StartImageCreation ( ) : void
Результат void

Описание свойств

m_eMode защищенное свойство

protected DialogMode m_eMode
Результат DialogMode

m_eState защищенное свойство

protected DialogState m_eState
Результат DialogState

m_oCreateSubgraphImagesDialogUserSettings защищенное свойство

protected CreateSubgraphImagesDialogUserSettings,Smrf.NodeXL.ExcelTemplate m_oCreateSubgraphImagesDialogUserSettings
Результат CreateSubgraphImagesDialogUserSettings

m_oSelectedVertexNames защищенное свойство

protected ICollection m_oSelectedVertexNames
Результат ICollection

m_oSubgraphImageCreator защищенное свойство

protected SubgraphImageCreator,Smrf.NodeXL.ExcelTemplate m_oSubgraphImageCreator
Результат SubgraphImageCreator

m_oWorkbook защищенное свойство

protected Microsoft.Office.Interop.Excel.Workbook m_oWorkbook
Результат Microsoft.Office.Interop.Excel.Workbook