Пример #1
0
        public void saveHeader(String path)
        {
            header.ReplyAddress           = this.replyAddress.Text;
            header.Source                 = this.source.Text;
            header.Timestamp              = Convert.ToDateTime(this.timestamp.Text);
            header.Context                = this.context.Text;
            header.Revision               = this.revision.Text;
            header.Noun                   = this.noun.Text;
            header.CreateVerb             = this.createDerGroupVerbCombo.Text;
            header.GetVerb                = this.getDERGroupCombo.Text;
            header.DispatchVerb           = this.DispatchDERGroupCombo.Text;
            header.StatusVerb             = this.GetDERGroupStatusCombo.Text;
            header.ReplayDetectionCreated = Convert.ToDateTime(this.created.Text);
            header.ReplayDetectionNonce   = this.nonce.Text;
            header.Comment                = this.comment.Text;
            header.CorrelationID          = this.correlationID.Text;
            header.MessageID              = this.messageID.Text;
            header.AsyncReplyFlag         = bool.Parse(this.asyncReplyFlag.Text);
            header.AckRequired            = bool.Parse(this.ackRequired.Text);
            header.Properties             = new List <DERMSInterface.CIMDefaults.Property>();
            CIMDefaults.Property p = new CIMDefaults.Property();
            p.Name  = this.propertyName.Text;
            p.Value = this.propertyValue.Text;
            header.addProperty(p);
            header.UserID                    = this.userID.Text;
            header.UserOrganization          = this.organization.Text;
            header.CreateDERGroupEndPoint    = this.createDERGroupEndPointText.Text;
            header.GetDERGroupEndPoint       = this.getDERGroupEndpointText.Text;
            header.DispatchDERGroupEndPoint  = this.dispatchDERGroupEndpointText.Text;
            header.GetDERGroupStatusEndPoint = this.getDERGroupStatusEndpointText.Text;

            header.writeHeader(path);
        }
Пример #2
0
        public void saveHeader(String path)
        {
            header.ReplyAddress = this.replyAddress.Text;
            header.Source = this.source.Text;
            header.Timestamp = Convert.ToDateTime(this.timestamp.Text);
            header.Context = this.context.Text;
            header.Revision = this.revision.Text;
            header.Noun = this.noun.Text;
            header.CreateVerb = this.createDerGroupVerbCombo.Text;
            header.GetVerb = this.getDERGroupCombo.Text;
            header.DispatchVerb = this.DispatchDERGroupCombo.Text;
            header.StatusVerb = this.GetDERGroupStatusCombo.Text;
            header.ReplayDetectionCreated = Convert.ToDateTime(this.created.Text);
            header.ReplayDetectionNonce = this.nonce.Text;
            header.Comment = this.comment.Text;
            header.CorrelationID = this.correlationID.Text;
            header.MessageID = this.messageID.Text;
            header.AsyncReplyFlag = bool.Parse(this.asyncReplyFlag.Text);
            header.AckRequired = bool.Parse(this.ackRequired.Text);
            header.Properties = new List<DERMSInterface.CIMDefaults.Property>();
            CIMDefaults.Property p = new CIMDefaults.Property();
            p.Name = this.propertyName.Text;
            p.Value = this.propertyValue.Text;
            header.addProperty(p);
            header.UserID = this.userID.Text;
            header.UserOrganization = this.organization.Text;
            header.CreateDERGroupEndPoint = this.createDERGroupEndPointText.Text;
            header.GetDERGroupEndPoint = this.getDERGroupEndpointText.Text;
            header.DispatchDERGroupEndPoint = this.dispatchDERGroupEndpointText.Text;
            header.GetDERGroupStatusEndPoint = this.getDERGroupStatusEndpointText.Text;

            header.writeHeader(path);
        }