protected override void OnAfterCreate(ISystemContext context, NodeState node)
{
base.OnAfterCreate(context, node);
if (this.ShelvingState != null)
{
if (this.ShelvingState.UnshelveTime != null)
{
this.ShelvingState.UnshelveTime.OnSimpleReadValue = OnReadUnshelveTime;
this.ShelvingState.UnshelveTime.MinimumSamplingInterval = 1000;
}
this.ShelvingState.OneShotShelve.OnCallMethod = OnOneShotShelve;
this.ShelvingState.OneShotShelve.OnReadExecutable = IsOneShotShelveExecutable;
this.ShelvingState.OneShotShelve.OnReadUserExecutable = IsOneShotShelveExecutable;
this.ShelvingState.TimedShelve.OnCall = OnTimedShelve;
this.ShelvingState.TimedShelve.OnReadExecutable = IsTimedShelveExecutable;
this.ShelvingState.TimedShelve.OnReadUserExecutable = IsTimedShelveExecutable;
this.ShelvingState.Unshelve.OnCallMethod = OnUnshelve;
this.ShelvingState.Unshelve.OnReadExecutable = IsTimedShelveExecutable;
this.ShelvingState.Unshelve.OnReadUserExecutable = IsTimedShelveExecutable;
}
}
#endregion