C# 클래스 Smrf.NodeXL.ExcelTemplate.GraphMLFilesImporter

Imports a set of GraphML files into a set of new NodeXL workbooks.
Call ImportGraphMLFilesAsync to import the GraphML files. Call CancelAsync to stop the import. Handle the and events to monitor the progress and completion of the importation.

If a file does not contain valid GraphML, it is skipped and added to an internal list of invalid files. After the importation completes, read the InvalidGraphMLFileNames property to retrieve the names of any invalid files.

상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oBackgroundWorker System.ComponentModel.BackgroundWorker
m_oInvalidGraphMLFileNames List

공개 메소드들

메소드 설명
CancelAsync ( ) : void
GraphMLFilesImporter ( ) : System

Initializes a new instance of the GraphMLFilesImporter class.

ImportGraphMLFilesAsync ( String sourceFolderPath, String destinationFolderPath ) : void

보호된 메소드들

메소드 설명
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
ImportGraphMLFilesInternal ( ImportGraphMLFilesAsyncArgs oImportGraphMLFilesAsyncArgs, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
OnXmlException ( String sGraphMLFileName, XmlException oXmlException ) : void

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

BackgroundWorker_DoWork() 보호된 메소드

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
리턴 void

BackgroundWorker_ProgressChanged() 보호된 메소드

protected BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
sender object
e System.ComponentModel.ProgressChangedEventArgs
리턴 void

BackgroundWorker_RunWorkerCompleted() 보호된 메소드

protected BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e System.ComponentModel.RunWorkerCompletedEventArgs
리턴 void

CancelAsync() 공개 메소드

public CancelAsync ( ) : void
리턴 void

GraphMLFilesImporter() 공개 메소드

Initializes a new instance of the GraphMLFilesImporter class.
public GraphMLFilesImporter ( ) : System
리턴 System

ImportGraphMLFilesAsync() 공개 메소드

public ImportGraphMLFilesAsync ( String sourceFolderPath, String destinationFolderPath ) : void
sourceFolderPath String
destinationFolderPath String
리턴 void

ImportGraphMLFilesInternal() 보호된 메소드

protected ImportGraphMLFilesInternal ( ImportGraphMLFilesAsyncArgs oImportGraphMLFilesAsyncArgs, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
oImportGraphMLFilesAsyncArgs ImportGraphMLFilesAsyncArgs
oBackgroundWorker System.ComponentModel.BackgroundWorker
oDoWorkEventArgs System.ComponentModel.DoWorkEventArgs
리턴 void

OnXmlException() 보호된 메소드

protected OnXmlException ( String sGraphMLFileName, XmlException oXmlException ) : void
sGraphMLFileName String
oXmlException System.Xml.XmlException
리턴 void

프로퍼티 상세

m_oBackgroundWorker 보호되어 있는 프로퍼티

protected BackgroundWorker,System.ComponentModel m_oBackgroundWorker
리턴 System.ComponentModel.BackgroundWorker

m_oInvalidGraphMLFileNames 보호되어 있는 프로퍼티

protected List m_oInvalidGraphMLFileNames
리턴 List