Class Model
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpredat.dll
This class is to represent model.
public class Model : FileGroup<model groupitem>, IFileGroup
Inheritance
object ←
Group
Implements
Inherited Members
FileGroup
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
Model()
Initializes a new instance of the
public Model()
Properties
DefaultDirectory
Gets the default directory.
public static string DefaultDirectory { get; }
Property Value
Toolkit
Gets or sets the toolkit.
public string Toolkit { get; set; }
Property Value
Methods
AddGroupItem(GroupItem)
Adds the group item.
public bool AddGroupItem(GroupItem item)
Parameters
item GroupItem
The item.
Returns
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)
Finds the group.
public Model.ModelItemGroup FindGroup(GroupItem item, List<model> groups)
Parameters
item GroupItem
The item.
groups ListModel.ModelItemGroup>
The groups.
Returns
GetALLFilterList()
Gets the all the filter list.
public List<string> GetALLFilterList()
Returns
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
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
The filter name.
GetFullPath(string)
Gets the full path through relative path.
public string GetFullPath(string strRefDir)
Parameters
strRefDir string
The reference directory.
Returns
The full path.
GetGroupItemList()
Gets the group item list.
public List<groupitem> GetGroupItemList()
Returns
The group items.
GetGroupItemList(string)
Gets the group item list.
public List<groupitem> GetGroupItemList(string filter)
Parameters
filter string
The filter.
Returns
The group items.
GetInsertedFile()
Gets the inserted file.
public static List<string> GetInsertedFile()
Returns
IsExistingItem(GroupItem)
Determines whether is existing item.
public bool IsExistingItem(GroupItem groupItem)
Parameters
groupItem GroupItem
The group item.
Returns
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
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
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
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
true if success; otherwise, false.