Skip to main content
Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpreAPI.dll
This class is to represent API for DAFUL.

Inheritance

object ← Api

Implements

IPre, IMainWindow

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Properties

ActiveDocument

Gets the active document. [Not Implementation]

Property Value

IDocument

ActiveDocumentViewModel

Gets the active DocumentViewModel

Property Value

IDocumentViewModel

ActiveModel

Gets the active model.

Property Value

Model

ActiveWork

Gets the active work.

Property Value

Work

ApplicationCore

Gets the application core.

Property Value

Application

DialogManager

Gets the dialog manager.

Property Value

IDlgManager

GlobalJournal

Gets the global journal.

Property Value

JournalRecorder

KerenlTranslatorMessageWriter

Property Value

Action<string>

KernelMessageWriter

Messagen output action for the kernel message

Property Value

Action<string>

LocalJournal

Gets the local journal.

Property Value

JournalRecorder

MainWindow

Gets the main window. [Not Implementation]

Property Value

IMainWindow

UnUseMRU

Gets or sets a value indicating whether [un use MRU].

Property Value

bool

Version

Gets the version.

Property Value

string

WriteDFG

Gets or sets the WriteDFG flag. [Not Implementation]

Property Value

bool

Methods

ActiveDocChanged()

Activate changed document.

ActiveViewChanged()

Activate changed view.

AutoSave()

Auto save. [Not Implementation]

CanSimulation(bool)

Determines whether this instance can simulation the specified can. [Not Implementation]

Parameters

bCan bool if set to true [can].

ClearMessage(string)

Clear Message. [Not Implementation]

Parameters

strName string Name.

CloseAllFile()

Closes all file.

CloseAllFileExceptWork()

Closes all file except work.

CloseDocument(Document)

Closes the file.

Parameters

doc Document The Document to close.

Returns

bool

CloseFile(string)

Closes the file.

Parameters

strFileName string Name of the file.

Returns

bool true if success; otherwise, false.

CloseFile(string, bool)

Closes the file.

Parameters

strFileName string Name of the STR file. bUseWork bool if set to true [b use work].

Returns

bool

CloseFile(string, bool, bool)

Closes the file.

Parameters

strFileName string Name of the string file. bUseWork bool if set to true [b use work]. bActivate bool if set to true [b activate].

Returns

bool

CloseHiddenFile(string)

Closes the hidden file.

Parameters

strFileName string Name of the string file.

Returns

bool

CloseWork()

Close work.

CreateDocument(string)

Creates the document.

Parameters

strFileName string Name of the file.

Returns

Document The document.

CreateDocument(string, bool)

Creates the document.

Parameters

strFileName string Name of the file. bActivate bool if set to true [b activate].

Returns

Document The document.

CreateDocument(string, bool, string)

Creates the document.

Parameters

strFileName string Name of the STR file. bActivate bool if set to true [b activate]. strDocCreateInfo string The STR doc create info.

Returns

Document

CreateDocument(string, bool, string, bool)

Creates the document.

Parameters

strFileName string Name of the string file. bActivate bool if set to true [b activate]. strDocCreateInfo string The string document create information. bDesigner bool if set to true [b designer].

Returns

Document

Dispose(bool)

Parameters

disposing bool

Dispose()

EndOutput(string)

Ends the output. [Not Implementation]

Parameters

strName string Name.

~Api()

Releases unmanaged resources and performs other cleanup operations before the Api is reclaimed by garbage collection.

Fit(string)

Fits this instance.

Parameters

strPathName string Name of the string path.

GetAllOpenDocument()

Gets all opend document.

Returns

List<Document>

GetDocumentFromOpenedDocument(string)

Gets the document from opened document.

Parameters

strFileName string Name of the file.

Returns

Document

GetMode()

Gets the mode.

Returns

string The mode type

IsOpenDocument(string)

Determines whether [is open document] [the specified STR file name].

Parameters

strFileName string Name of the file.

Returns

bool true if [is open document] [the specified STR file name]; otherwise, false.

IsRunningSimulation()

Determines whether [is running simulation].

Returns

bool

NewFile(NewFile)

New file.

Parameters

nf NewFile The new file information.

NewModel(NewModel)

New model.

Parameters

nM NewModel The new model information.

OpenDocument(string)

Opens the document.

Parameters

strFileName string Name of the file.

Returns

Document The document.

OpenDocument(string, bool)

Opens the document.

Parameters

strFileName string Name of the file. bActivate bool if set to true [b activate].

Returns

Document The document.

OpenDocument(string, string, bool)

Opens the document.

Parameters

strFileName string Name of the STR file. strRelatedPath string The STR related path. bActivate bool if set to true [b activate].

Returns

Document

OpenDocumentFile(string)

Opens the document file.

Parameters

strFileName string Name of the STR file.

Returns

Document

OpenFile(string, string)

Opens the file.

Parameters

strFileName string Name of the file. strRefDir string The reference directory.

Returns

GroupItem The file information class.

OpenFileDialogAsMainWindow(OpenFileDialogInfo)

Opens the file dialog as main window. [Not Implementation]

Parameters

info OpenFileDialogInfo The info.

Returns

string the file name

OpenHiddenDocument(object)

Opens the hidden document.

Parameters

obj object The object.

Returns

Document

OpenModel(string)

Opens the model.

Parameters

strFileName string Name of the file.

Returns

Model The model.

OpenWork(string)

Opens the work.

Parameters

strFileName string Name of the STR file.

Returns

Work

PrepareSimulation()

Prepares the simulation. [Not Implementation]

Returns

bool true if success; otherwise, false.

ReadAllText(string, string)

Reads all text. [Not Implementation]

Parameters

strPath string The path. strName string Name.

ReadAllText(string, string, bool)

Reads all text.

Parameters

strPath string The STR path. strName string Name of the STR. bDeleteFIle bool if set to true [b delete F ile].

SaveAllFile()

Saves all file.

Returns

SaveAllResult

SaveFile()

Save the file.

SaveFile(string)

Saves the file.

Parameters

strPath string The path.

SaveFile(Document, string)

Saves the file.

Parameters

doc Document The doc. strFileName string Name of the STR file.

SaveFile(Document, string, bool)

Saves the file.

Parameters

doc Document The doc. strFileName string Name of the STR file. bIgnoreExternChange bool if set to true [b ignore extern change].

SaveFile(Document)

Saves the file.

Parameters

doc Document The document to save.

SaveFileDialogAsMainWindow(SaveFileDialogInfo)

Saves the file dialog as main window. [Not Implementation]

Parameters

info SaveFileDialogInfo The info.

Returns

string the file name

SaveModel(string)

Saves the model.

Parameters

strFileName string Name of the file.

SaveWork(string)

Saves the work.

Parameters

strFileName string Name of the file.

SetEnableOfTabCtrl(object, bool)

Sets enable or disable of Tab..

Parameters

obj object The current document. bEnable bool if set to true [is enable].

SetIntervalForAutoSize()

Sets the size of the interval for auto. [Not Implementation]

SetPathName(string, string)

Set path name.

Parameters

strOldPath string The old path. strNewPath string The new path.

SetProgressState(int)

Set taskbar progress state.

Parameters

nStats int 0x0 : NOPROGRESS, 0x1 : INDETERMINATE, 0x2 : NORMAL, 0x4 : ERROR, 0x8 : PAUSED

SetProgressValue(ulong, ulong)

Set taskbar progress value.

Parameters

nCompleted ulong The completed value. nTotal ulong The total value.

SetSimulationParameters(string, string)

Sets the simulation parameters. [Not Implementation]

Parameters

strEndTime string The end time. strStepSize string Size of the step.

Returns

bool true if success; otherwise, false.

SetStatusBar(string)

Set status bar.

Parameters

strMessage string The message.

Start()

Start Api instance

Returns

Api new Api instance

Start(string, string)

Start Api instance.

Parameters

strKernelPath string The kernel path. strKernelCoreModulePath string The kernel core module path.

Returns

Api new Api instance

Start(string, string, string, string)

Start Api instance.

Parameters

strKernelPath string The kernel path. strKernelCoreModulePath string The kernel core module path. strTranslatorDir string The translator directory. strHoopsExchangeDirectory string The Hoops Exchange directory.

Returns

Api new Api instance

Start(ApiStartOptions)

Start Api instance with given ApiStartOptions

Parameters

options ApiStartOptions The ApiStartOptions.

Returns

Api new Api instance

StartOperationStatus()

Starts the operation status.

StartOutput(string, string)

Starts the output. [Not Implementation]

Parameters

strPath string The path. strName string Name.

UseSession(string)

Get session object to menage operation session

Parameters

strSessionName string The name of the session

Returns

ISession The ISession?text=session object

UseSession(IOperation)

Get session object to menage operation session

Parameters

operation IOperation The IOperation?text=operation will be executed.

Returns

ISession The ISession?text=session object

OnActiveDocumentChanged

Occurs when [on active document changed]. [Not Implementation]

Event Type

EventHandler

OnActiveViewChanged

Occurs when [on active view changed]. [Not Implementation]

Event Type

EventHandler