protected override ProcedureStep CreateScheduledCopy()
        {
            ProtocolAssignmentStep newStep = new ProtocolAssignmentStep(this.Protocol);

            this.Procedure.AddProcedureStep(newStep);
            return(newStep);
        }
        public override ProcedureStep CreateInstance(XmlElement xmlNode, Procedure procedure)
        {
            Protocol protocol           = new Protocol(procedure);
            ProtocolAssignmentStep step = new ProtocolAssignmentStep(protocol);

            //note: this is not ideal but there is no other way to save the protocol object
            PersistenceScope.CurrentContext.Lock(protocol, DirtyState.New);

            return(step);
        }
        public override ProcedureStep CreateInstance(XmlElement xmlNode, Procedure procedure)
        {
            Protocol protocol = new Protocol(procedure);
            ProtocolAssignmentStep step = new ProtocolAssignmentStep(protocol);

            //note: this is not ideal but there is no other way to save the protocol object
            PersistenceScope.CurrentContext.Lock(protocol, DirtyState.New);

            return step;
        }
 protected override ProcedureStep CreateScheduledCopy()
 {
     ProtocolAssignmentStep newStep = new ProtocolAssignmentStep(this.Protocol);
     this.Procedure.AddProcedureStep(newStep);
     return newStep;
 }