コード例 #1
0
        protected override ProcedureStep CreateScheduledCopy()
        {
            ProtocolAssignmentStep newStep = new ProtocolAssignmentStep(this.Protocol);

            this.Procedure.AddProcedureStep(newStep);
            return(newStep);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 protected override ProcedureStep CreateScheduledCopy()
 {
     ProtocolAssignmentStep newStep = new ProtocolAssignmentStep(this.Protocol);
     this.Procedure.AddProcedureStep(newStep);
     return newStep;
 }