Class TaskPage<T>
- Namespace
- BlueByte.SOLIDWORKS.PDMProfessional.SDK.Core
- Assembly
- BlueByte.SOLIDWORKS.PDMProfessional.SDK.dll
Task page. Use this to add a UI component (Usercontrol) to EPDM.Interop.epdm.EdmCmdType.EdmCmd_TaskSetup and EPDM.Interop.epdm.EdmCmdType.EdmCmd_TaskDetails
public class TaskPage<T> : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ITaskPage where T : INotifyPropertyChanged
Type Parameters
T
ViewModel
- Inheritance
-
TaskPage<T>
- Implements
- Inherited Members
Constructors
TaskPage()
Creates a new instance of the task page.
public TaskPage()
Properties
Container
Container
public Container Container { get; set; }
Property Value
- Container
Name
Name of the setup page.
public string Name { get; set; }
Property Value
SaveLoadDataToVariable
Saves and loads data from variable
public bool SaveLoadDataToVariable { get; set; }
Property Value
SaveLoadDataToVariableId
Id of the variable to save and load data from.
public int SaveLoadDataToVariableId { get; set; }
Property Value
Vault
Gets the vault object.
public IEdmVault5 Vault { get; }
Property Value
- IEdmVault5
ViewModel
ViewModel
public T ViewModel { get; set; }
Property Value
- T
Methods
ClearDataBindings(Control)
Clears data bindings all of children.
public void ClearDataBindings(Control rootControl)
Parameters
rootControl
ControlThe root control.
LoadData(ref EdmCmd)
Load data.
public virtual void LoadData(ref EdmCmd cmd)
Parameters
cmd
EdmCmdCmd
LoadSettings()
Loads task settings from a file
public void LoadSettings()
OnDataLoaded()
Fires when data is loaded. Clear all bindings from all controls by invoking ClearDataBindings(Control)
public virtual void OnDataLoaded()
SaveSettings()
Saves task settings to a file
public void SaveSettings()
StoreData(ref EdmCmd)
Stores Data
public virtual void StoreData(ref EdmCmd cmd)
Parameters
cmd
EdmCmd