Class Model
Last update: 09.03.2026Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpredat.dll
This class is to represent model.
public class Model : FileGroup<Model.ModelItemGroup, GroupItem>, IFileGroup
Inheritance
object ← Group<Model.ModelItemGroup, GroupItem> ← FileGroup<Model.ModelItemGroup, GroupItem> ← Model
Implements
Inherited Members
FileGroup<Model.ModelItemGroup, GroupItem>.Path, Group<Model.ModelItemGroup, GroupItem>.Initialize(), Group<Model.ModelItemGroup, GroupItem>.Name, Group<Model.ModelItemGroup, GroupItem>.SubGroups, Group<Model.ModelItemGroup, GroupItem>.SubItems
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
Model()
Initializes a new instance of the
public Model()
Properties
DefaultDirectory
Gets the default directory.
public static string DefaultDirectory { get; }
Property Value
string
Toolkit
Gets or sets the toolkit.
public string Toolkit { get; set; }
Property Value
string
Methods
AddGroupItem(GroupItem)
Adds the group item.
public bool AddGroupItem(GroupItem item)
Parameters
item GroupItem
The item.
Returns
bool
true if success; otherwise, false.
AddInsertedFile(string)
Adds the inserted file.
public static void AddInsertedFile(string strFileName)
Parameters
strFileName string
Name of the STR file.
ClearInsertedFiles()
Clears the inserted files.
public static void ClearInsertedFiles()
FindGroup(GroupItem, List<ModelItemGroup>)
Finds the group.
public Model.ModelItemGroup FindGroup(GroupItem item, List<Model.ModelItemGroup> groups)
Parameters
item GroupItem
The item.
groups List<Model.ModelItemGroup>
The groups.
Returns
GetALLFilterList()
Gets the all the filter list.
public List<string> GetALLFilterList()
Returns
List<string>
The filters.
GetDefaultLocation(bool, bool)
Gets the recent directory.
public static string GetDefaultLocation(bool bModel, bool bNew)
Parameters
bModel bool
if set to true [model].
bNew bool
if set to true [new].
Returns
string
The name of recent directory if success; otherwise, null.
GetFilterName(string)
Gets the name of the filter.
public string GetFilterName(string filter)
Parameters
filter string
The filter.
Returns
string
The filter name.
GetFullPath(string)
Gets the full path through relative path.
public string GetFullPath(string strRefDir)
Parameters
strRefDir string
The reference directory.
Returns
string
The full path.
GetGroupItemList()
Gets the group item list.
public List<GroupItem> GetGroupItemList()
Returns
List<GroupItem>
The group items.
GetGroupItemList(string)
Gets the group item list.
public List<GroupItem> GetGroupItemList(string filter)
Parameters
filter string
The filter.
Returns
List<GroupItem>
The group items.
GetInsertedFile()
Gets the inserted file.
public static List<string> GetInsertedFile()
Returns
List<string>
IsExistingItem(GroupItem)
Determines whether is existing item.
public bool IsExistingItem(GroupItem groupItem)
Parameters
groupItem GroupItem
The group item.
Returns
bool
true if is existing item; otherwise, false.
IsExistingItem(string, string)
Determines whether is existing item.
public bool IsExistingItem(string strRefDir, string strAbsolutePath)
Parameters
strRefDir string
The reference directory.
strAbsolutePath string
The absolute path.
Returns
bool
true if is existing item; otherwise, false.
IsExistingItemFromDirectory(string, string)
Determines whether [is existing item from directory] [the specified STR ref dir].
public bool IsExistingItemFromDirectory(string strRefDir, string strAbsoluteDirectory)
Parameters
strRefDir string
The STR ref dir.
strAbsoluteDirectory string
The STR absolute directory.
Returns
bool
true if [is existing item from directory] [the specified STR ref dir]; otherwise, false.
IsExistingName(string)
Determines whether is existing name.
public bool IsExistingName(string ItemName)
Parameters
ItemName string
Name of the item.
Returns
bool
true if is existing name; otherwise, false.
SetDefaultLocation(string, bool, bool)
Sets the recent directory in registry.
public static bool SetDefaultLocation(string strPath, bool bModel, bool bNew)
Parameters
strPath string
The path of current work.
bModel bool
if set to true [model].
bNew bool
if set to true [new].
Returns
bool
true if success; otherwise, false.