Class Work
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.Pre
Assembly: dfpredat.dll
This class is to represent the work.
public class Work : FileGroup<Work.WorkGroup, GroupItem>, IFileGroup, IWorkGroup
Inheritance
object ← Group<Work.WorkGroup, GroupItem> ← FileGroup<Work.WorkGroup, GroupItem> ← Work
Implements
Inherited Members
FileGroup<Work.WorkGroup, GroupItem>.Path, Group<Work.WorkGroup, GroupItem>.Initialize(), Group<Work.WorkGroup, GroupItem>.Name, Group<Work.WorkGroup, GroupItem>.SubGroups, Group<Work.WorkGroup, GroupItem>.SubItems
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
Work()
Initializes a new instance of the
public Work()
Work(string)
Initializes a new instance of the
public Work(string strFileName)
Parameters
strFileName string
Name of the file.
Work(string, bool)
Initializes a new instance of the
public Work(string strFileName, bool IsSettingCurrent)
Parameters
strFileName string
Name of the file.
IsSettingCurrent bool
if set to true [is setting current].
Properties
CurrentWork
Gets or sets the current work.
public static Work CurrentWork { get; }
Property Value
CurrentWorkPath
Gets or sets the current work path.
public static string CurrentWorkPath { get; set; }
Property Value
SubModels
Gets or sets the sub models.
public List<Model> SubModels { get; set; }
Property Value
Methods
AddModel(Model)
Adds the model in work.
public bool AddModel(Model model)
Parameters
model Model
The new model.
Returns
true if success; otherwise, false.
ClearCurrentWork()
Clear the current work.
public static void ClearCurrentWork()
GetActiveModel(string)
Gets the active model. If model has active item, it is active.
public Model GetActiveModel(string strItemPath)
Parameters
strItemPath string
The item path.
Returns
The active model.
GetActiveModelFromDirectory(string)
Gets the active model from directory.
public Model GetActiveModelFromDirectory(string strItemDirectory)
Parameters
strItemDirectory string
The STR item directory.
Returns
GetAllModels()
Gets all models.
public List<Model> GetAllModels()
Returns
The Models
GetModel(string)
Gets the model.
public Model GetModel(string strModelName)
Parameters
strModelName string
Name of the model.
Returns
GetModelNameList()
Gets the model name list.
public List<string> GetModelNameList()
Returns
The name of models.
Initialize()
Initializes this instance.
public override void Initialize()