Пример #1
0
    public override bool TryCopyFrom(ConnectorDomainProperties properties)
    {
      var pipeProp = properties as PipeConnectorDomainProperties;
      if (pipeProp == null)
      {
        return false;
      }

      Pressure = pipeProp.Pressure;
      Temperature = pipeProp.Temperature;
      return true;
    }
Пример #2
0
 public abstract bool TryCopyFrom(ConnectorDomainProperties properties);
Пример #3
0
 private static ConnectorDomainPropertiesViewModel Create(ConnectorDomainProperties connectorDomainProperties)
 {
   var pipeProperties = connectorDomainProperties as PipeConnectorDomainProperties;
   if (pipeProperties != null)
     return new PipeConnectorDomainPropertiesViewModel(pipeProperties);
   return new ConnectorDomainPropertiesViewModel(connectorDomainProperties);
 }
Пример #4
0
 public ConnectorDomainPropertiesViewModel(ConnectorDomainProperties connectorDomainProperties)
 {
   this.connectorDomainProperties = connectorDomainProperties;
 }
Пример #5
0
 public ConnectorProperties(ConnectorDomainProperties domainProperties)
 {
   DomainProperties = domainProperties;
 }