Class Pre
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpredat.dll
This class is to represent the Pre.
public class Pre
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
Pre()
public Pre()
Properties
ActiveDocument
Gets the active document.
public static IDocument ActiveDocument { get; }
Property Value
IDocument
ActiveDocumentViewModel
Gets the active document viewmodel.
public static IDocumentViewModel ActiveDocumentViewModel { get; }
Property Value
IDocumentViewModel
ApplicationCore
Gets the application core.
public static Application ApplicationCore { get; }
Property Value
Application
Core
Gets or sets the core.
public static IPre Core { set; }
Property Value
CreateFileName
Gets or sets the name of the create file.
public static string CreateFileName { get; set; }
Property Value
DialogManager
Gets the dialog manager.
public static IDlgManager DialogManager { get; }
Property Value
IDlgManager
DocumentInfo
Gets or sets the document info.
public static List<DocInfo> DocumentInfo { get; set; }
Property Value
GlobalJournal
Gets the global journal.
public static JournalRecorder GlobalJournal { get; }
Property Value
JournalRecorder
LocalJournal
Gets the local journal.
public static JournalRecorder LocalJournal { get; }
Property Value
JournalRecorder
MainWindow
Gets the main window.
public static IMainWindow MainWindow { get; }
Property Value
Settings
Gets the application settings.
public static Settings Settings { get; }
Property Value
TemplateInfo
Gets or sets the template info.
public static Dictionary<string, UIntPtr> TemplateInfo { get; set; }
Property Value
UnUseMRU
Gets or sets a value indicating whether [un use MRU].
public static bool UnUseMRU { get; set; }
Property Value
Version
Gets the version.
public static string Version { get; }
Property Value
WriteDFG
Gets or sets the WriteDFG flag.
public static bool WriteDFG { get; set; }
Property Value
Methods
AutoSave()
Auto save.
public static void AutoSave()
CloseAllFile()
Closes all file.
public static void CloseAllFile()
CloseAllFileExceptWork()
Closes all file except work.
public static void CloseAllFileExceptWork()
CloseFile(string)
Closes the file.
public static bool CloseFile(string strFileName)
Parameters
strFileName string
Name of the file.
Returns
true if success; otherwise, false.
CloseFile(string, bool)
Closes the file.
public static bool CloseFile(string strFileName, bool bUseWork)
Parameters
strFileName string
Name of the STR file.
bUseWork bool
if set to true [b use work].
Returns
CloseFile(string, bool, bool)
Closes the file.
public static bool CloseFile(string strFileName, bool bUseWork, bool bActivate)
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
CloseHiddenFile(string)
Closes the hidden file.
public static bool CloseHiddenFile(string strFileName)
Parameters
strFileName string
Name of the string file.
Returns
CloseWork()
Close work.
public static void CloseWork()
CreateDocument(string)
Creates the document.
public static Document CreateDocument(string strFileName)
Parameters
strFileName string
Name of the file.
Returns
Document
The document.
CreateDocument(string, bool)
Creates the document.
public static Document CreateDocument(string strFileName, bool bActivate)
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.
public static Document CreateDocument(string strFileName, bool bActivate, string strDocCreateInfo)
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, DocCreateInfo)
Creates the document.
public static Document CreateDocument(string strFileName, bool bActivate, DocCreateInfo docCreateInfo)
Parameters
strFileName string
Name of the STR file.
bActivate bool
if set to true [b activate].
docCreateInfo DocCreateInfo
The doc create info.
Returns
Document
CreateDocument(string, bool, string, bool)
Creates the document.
public static Document CreateDocument(string strFileName, bool bActivate, string strDocCreateInfo, bool bDesigner)
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
Fit(string)
Fits the specified string path name.
public static void Fit(string strPathName)
Parameters
strPathName string
Name of the string path.
GetAllOpenDocument()
Gets all document.
public static List<Document> GetAllOpenDocument()
Returns
List<Document>
GetDocumentFromOpenedDocument(string)
Gets the document from opened document.
public static Document GetDocumentFromOpenedDocument(string strFileName)
Parameters
strFileName string
Name of the STR file.
Returns
Document
GetMode()
Gets the mode.
public static string GetMode()
Returns
The mode type.
IsOpenDocument(string)
Determines whether [is open document] [the specified file name].
public static bool IsOpenDocument(string strFileName)
Parameters
strFileName string
Name of the file.
Returns
true if is open document; otherwise, false.
NewFile(NewFile)
New file.
public static void NewFile(NewFile nf)
Parameters
nf NewFile
The new file information.
NewModel(NewModel)
New model.
public static void NewModel(NewModel nM)
Parameters
nM NewModel
The new model information.
OpenDocument(string)
Opens the document.
public static Document OpenDocument(string strFileName)
Parameters
strFileName string
Name of the file.
Returns
Document
The document.
OpenDocument(string, bool)
Opens the document.
public static Document OpenDocument(string strFileName, bool bActivate)
Parameters
strFileName string
Name of the file.
bActivate bool
if set to true [b activate].
Returns
Document
The document.
OpenDocumentFile(string)
Opens the document file.
public static Document OpenDocumentFile(string strFileName)
Parameters
strFileName string
Name of the STR file.
Returns
Document
OpenFile(string, string)
Opens the file.
public static GroupItem OpenFile(string strFileName, string strRefDir)
Parameters
strFileName string
Name of the file.
strRefDir string
The reference directory.
Returns
The file informaton class.
OpenHiddenDocument(object)
Opens the hidden document.
public static Document OpenHiddenDocument(object obj)
Parameters
obj object
The object.
Returns
Document
OpenModel(string)
Open model.
public static Model OpenModel(string strFileName)
Parameters
strFileName string
The file name.
Returns
OpenWork(string)
Opens the work.
public static Work OpenWork(string strFileName)
Parameters
strFileName string
Name of the STR file.
Returns
SaveAllFile()
Saves all file.
public static SaveAllResult SaveAllFile()
Returns
SaveFile()
Save the file.
public static void SaveFile()
SaveFile(string)
Saves the file.
public static void SaveFile(string strPath)
Parameters
strPath string
The STR path.
SaveFile(Document, string)
Saves the file.
public static void SaveFile(Document doc, string strFileName)
Parameters
doc Document
The doc.
strFileName string
Name of the STR file.
SaveFile(Document, string, bool)
Saves the file.
public static void SaveFile(Document doc, string strFileName, bool bIgnoreExternChange)
Parameters
doc Document
The doc.
strFileName string
Name of the STR file.
bIgnoreExternChange bool
if set to true [b ignore extern change].
SaveModel(string)
Saves the model.
public static void SaveModel(string strFileName)
Parameters
strFileName string
Name of the file.
SaveWork(string)
Saves the work.
public static void SaveWork(string strFileName)
Parameters
strFileName string
Name of the file.
SetPathName(string, string)
Set path name.
public static void SetPathName(string strOldPath, string strNewPath)
Parameters
strOldPath string
The old path.
strNewPath string
The new path.
SetProgressState(int)
Set taskbar progress state.
public static void SetProgressState(int nStats)
Parameters
nStats int
0x0 : NOPROGRESS, 0x1 : INDETERMINATE, 0x2 : NORMAL, 0x4 : ERROR, 0x8 : PAUSED
SetProgressValue(ulong, ulong)
Set taskbar progress value.
public static void SetProgressValue(ulong nCompleted, ulong nTotal)
Parameters
nCompleted ulong
The completed value.
nTotal ulong
The total value.
SetStatusBar(string)
Set status bar.
public static void SetStatusBar(string strMessage)
Parameters
strMessage string
The message.
OnActiveDocumentChanged
Occurs when [on active document changed].
public static event EventHandler OnActiveDocumentChanged
Event Type
OnActiveViewChanged
Occurs when [on active view changed].
public static event EventHandler OnActiveViewChanged