/// <summary>
 /// Initializes a new instance of the <see cref="StakeHolderValueMapRowViewModel"/> class
 /// </summary>
 /// <param name="stakeHolderValueMap">The <see cref="StakeHolderValueMap"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public StakeHolderValueMapRowViewModel(StakeHolderValueMap stakeHolderValueMap, ISession session, IViewModelBase <Thing> containerViewModel) : base(stakeHolderValueMap, session, containerViewModel)
 {
     this.settingsFolder = new CDP4Composition.FolderRowViewModel("Settings", "Settings", this.Session, this);
     this.ContainedRows.Add(this.settingsFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActualFiniteStateListRowViewModel"/> class
 /// </summary>
 /// <param name="actualFiniteStateList">The <see cref="ActualFiniteStateList"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public ActualFiniteStateListRowViewModel(ActualFiniteStateList actualFiniteStateList, ISession session, IViewModelBase <Thing> containerViewModel) : base(actualFiniteStateList, session, containerViewModel)
 {
     this.actualStateFolder = new CDP4Composition.FolderRowViewModel("Actual State", "Actual State", this.Session, this);
     this.ContainedRows.Add(this.actualStateFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequirementsSpecificationRowViewModel"/> class
 /// </summary>
 /// <param name="requirementsSpecification">The <see cref="RequirementsSpecification"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public RequirementsSpecificationRowViewModel(RequirementsSpecification requirementsSpecification, ISession session, IViewModelBase <Thing> containerViewModel) : base(requirementsSpecification, session, containerViewModel)
 {
     this.requirementFolder = new CDP4Composition.FolderRowViewModel("Requirement", "Requirement", this.Session, this);
     this.ContainedRows.Add(this.requirementFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ElementUsageRowViewModel"/> class
 /// </summary>
 /// <param name="elementUsage">The <see cref="ElementUsage"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public ElementUsageRowViewModel(ElementUsage elementUsage, ISession session, IViewModelBase <Thing> containerViewModel) : base(elementUsage, session, containerViewModel)
 {
     this.parameterOverrideFolder = new CDP4Composition.FolderRowViewModel("Parameter Override", "Parameter Override", this.Session, this);
     this.ContainedRows.Add(this.parameterOverrideFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ReferenceDataLibraryRowViewModel{T}"/> class
        /// </summary>
        /// <param name="referenceDataLibrary">The <see cref="ReferenceDataLibrary"/> associated with this row</param>
        /// <param name="session">The session</param>
        /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
        protected ReferenceDataLibraryRowViewModel(T referenceDataLibrary, ISession session, IViewModelBase <Thing> containerViewModel) : base(referenceDataLibrary, session, containerViewModel)
        {
            this.definedCategoryFolder = new CDP4Composition.FolderRowViewModel("Defined Category", "Defined Category", this.Session, this);
            this.ContainedRows.Add(this.definedCategoryFolder);
            this.parameterTypeFolder = new CDP4Composition.FolderRowViewModel("Parameter Type", "Parameter Type", this.Session, this);
            this.ContainedRows.Add(this.parameterTypeFolder);
            this.scaleFolder = new CDP4Composition.FolderRowViewModel("Scale", "Scale", this.Session, this);
            this.ContainedRows.Add(this.scaleFolder);
            this.unitPrefixFolder = new CDP4Composition.FolderRowViewModel("Unit Prefix", "Unit Prefix", this.Session, this);
            this.ContainedRows.Add(this.unitPrefixFolder);
            this.unitFolder = new CDP4Composition.FolderRowViewModel("Unit", "Unit", this.Session, this);
            this.ContainedRows.Add(this.unitFolder);
            this.fileTypeFolder = new CDP4Composition.FolderRowViewModel("File Type", "File Type", this.Session, this);
            this.ContainedRows.Add(this.fileTypeFolder);
            this.glossaryFolder = new CDP4Composition.FolderRowViewModel("Glossary", "Glossary", this.Session, this);
            this.ContainedRows.Add(this.glossaryFolder);
            this.referenceSourceFolder = new CDP4Composition.FolderRowViewModel("Reference Source", "Reference Source", this.Session, this);
            this.ContainedRows.Add(this.referenceSourceFolder);
            this.ruleFolder = new CDP4Composition.FolderRowViewModel("Rule", "Rule", this.Session, this);
            this.ContainedRows.Add(this.ruleFolder);
            this.constantFolder = new CDP4Composition.FolderRowViewModel("Constant", "Constant", this.Session, this);
            this.ContainedRows.Add(this.constantFolder);

            var rdlListener = CDPMessageBus.Current.Listen <SessionEvent>()
                              .Where(objectChange => objectChange.Status == SessionStatus.RdlOpened || objectChange.Status == SessionStatus.RdlClosed)
                              .Subscribe(_ => this.UpdateProperties());

            this.Disposables.Add(rdlListener);

            this.UpdateProperties();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SiteDirectoryRowViewModel"/> class
 /// </summary>
 /// <param name="siteDirectory">The <see cref="SiteDirectory"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public SiteDirectoryRowViewModel(SiteDirectory siteDirectory, ISession session, IViewModelBase <Thing> containerViewModel) : base(siteDirectory, session, containerViewModel)
 {
     this.organizationFolder = new CDP4Composition.FolderRowViewModel("Organization", "Organization", this.Session, this);
     this.ContainedRows.Add(this.organizationFolder);
     this.personFolder = new CDP4Composition.FolderRowViewModel("Person", "Person", this.Session, this);
     this.ContainedRows.Add(this.personFolder);
     this.participantRoleFolder = new CDP4Composition.FolderRowViewModel("Participant Role", "Participant Role", this.Session, this);
     this.ContainedRows.Add(this.participantRoleFolder);
     this.siteReferenceDataLibraryFolder = new CDP4Composition.FolderRowViewModel("Site Reference Data Library", "Site Reference Data Library", this.Session, this);
     this.ContainedRows.Add(this.siteReferenceDataLibraryFolder);
     this.modelFolder = new CDP4Composition.FolderRowViewModel("Model", "Model", this.Session, this);
     this.ContainedRows.Add(this.modelFolder);
     this.personRoleFolder = new CDP4Composition.FolderRowViewModel("Person Role", "Person Role", this.Session, this);
     this.ContainedRows.Add(this.personRoleFolder);
     this.logEntryFolder = new CDP4Composition.FolderRowViewModel("Log Entry", "Log Entry", this.Session, this);
     this.ContainedRows.Add(this.logEntryFolder);
     this.domainGroupFolder = new CDP4Composition.FolderRowViewModel("Domain Group", "Domain Group", this.Session, this);
     this.ContainedRows.Add(this.domainGroupFolder);
     this.domainFolder = new CDP4Composition.FolderRowViewModel("Domain", "Domain", this.Session, this);
     this.ContainedRows.Add(this.domainFolder);
     this.naturalLanguageFolder = new CDP4Composition.FolderRowViewModel("Natural Language", "Natural Language", this.Session, this);
     this.ContainedRows.Add(this.naturalLanguageFolder);
     this.annotationFolder = new CDP4Composition.FolderRowViewModel("Annotation", "Annotation", this.Session, this);
     this.ContainedRows.Add(this.annotationFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RuleVerificationListRowViewModel"/> class
 /// </summary>
 /// <param name="ruleVerificationList">The <see cref="RuleVerificationList"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public RuleVerificationListRowViewModel(RuleVerificationList ruleVerificationList, ISession session, IViewModelBase <Thing> containerViewModel) : base(ruleVerificationList, session, containerViewModel)
 {
     this.ruleVerificationFolder = new CDP4Composition.FolderRowViewModel("Rule Verification", "Rule Verification", this.Session, this);
     this.ContainedRows.Add(this.ruleVerificationFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExternalIdentifierMapRowViewModel"/> class
 /// </summary>
 /// <param name="externalIdentifierMap">The <see cref="ExternalIdentifierMap"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public ExternalIdentifierMapRowViewModel(ExternalIdentifierMap externalIdentifierMap, ISession session, IViewModelBase <Thing> containerViewModel) : base(externalIdentifierMap, session, containerViewModel)
 {
     this.correspondenceFolder = new CDP4Composition.FolderRowViewModel("Correspondence", "Correspondence", this.Session, this);
     this.ContainedRows.Add(this.correspondenceFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ParametricConstraintRowViewModel"/> class
 /// </summary>
 /// <param name="parametricConstraint">The <see cref="ParametricConstraint"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public ParametricConstraintRowViewModel(ParametricConstraint parametricConstraint, ISession session, IViewModelBase <Thing> containerViewModel) : base(parametricConstraint, session, containerViewModel)
 {
     this.expressionFolder = new CDP4Composition.FolderRowViewModel("Expression", "Expression", this.Session, this);
     this.ContainedRows.Add(this.expressionFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PageRowViewModel"/> class
 /// </summary>
 /// <param name="page">The <see cref="Page"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public PageRowViewModel(Page page, ISession session, IViewModelBase <Thing> containerViewModel) : base(page, session, containerViewModel)
 {
     this.noteFolder = new CDP4Composition.FolderRowViewModel("Note", "Note", this.Session, this);
     this.ContainedRows.Add(this.noteFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DerivedUnitRowViewModel"/> class
 /// </summary>
 /// <param name="derivedUnit">The <see cref="DerivedUnit"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public DerivedUnitRowViewModel(DerivedUnit derivedUnit, ISession session, IViewModelBase <Thing> containerViewModel) : base(derivedUnit, session, containerViewModel)
 {
     this.unitFactorFolder = new CDP4Composition.FolderRowViewModel("Unit Factor", "Unit Factor", this.Session, this);
     this.ContainedRows.Add(this.unitFactorFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagramEdgeRowViewModel"/> class
 /// </summary>
 /// <param name="diagramEdge">The <see cref="DiagramEdge"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public DiagramEdgeRowViewModel(DiagramEdge diagramEdge, ISession session, IViewModelBase <Thing> containerViewModel) : base(diagramEdge, session, containerViewModel)
 {
     this.pointFolder = new CDP4Composition.FolderRowViewModel("Point", "Point", this.Session, this);
     this.ContainedRows.Add(this.pointFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BookRowViewModel"/> class
 /// </summary>
 /// <param name="book">The <see cref="Book"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public BookRowViewModel(Book book, ISession session, IViewModelBase <Thing> containerViewModel) : base(book, session, containerViewModel)
 {
     this.sectionFolder = new CDP4Composition.FolderRowViewModel("Section", "Section", this.Session, this);
     this.ContainedRows.Add(this.sectionFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompoundParameterTypeRowViewModel"/> class
 /// </summary>
 /// <param name="compoundParameterType">The <see cref="CompoundParameterType"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public CompoundParameterTypeRowViewModel(CompoundParameterType compoundParameterType, ISession session, IViewModelBase<Thing> containerViewModel) : base(compoundParameterType, session, containerViewModel)
 {
     this.componentFolder = new CDP4Composition.FolderRowViewModel("Component", "Component", this.Session, this);
     this.ContainedRows.Add(this.componentFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumerationParameterTypeRowViewModel"/> class
 /// </summary>
 /// <param name="enumerationParameterType">The <see cref="EnumerationParameterType"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public EnumerationParameterTypeRowViewModel(EnumerationParameterType enumerationParameterType, ISession session, IViewModelBase <Thing> containerViewModel) : base(enumerationParameterType, session, containerViewModel)
 {
     this.valueDefinitionFolder = new CDP4Composition.FolderRowViewModel("Value Definition", "Value Definition", this.Session, this);
     this.ContainedRows.Add(this.valueDefinitionFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LogarithmicScaleRowViewModel"/> class
 /// </summary>
 /// <param name="logarithmicScale">The <see cref="LogarithmicScale"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public LogarithmicScaleRowViewModel(LogarithmicScale logarithmicScale, ISession session, IViewModelBase <Thing> containerViewModel) : base(logarithmicScale, session, containerViewModel)
 {
     this.referenceQuantityValueFolder = new CDP4Composition.FolderRowViewModel("Reference Quantity Value", "Reference Quantity Value", this.Session, this);
     this.ContainedRows.Add(this.referenceQuantityValueFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonRoleRowViewModel"/> class
 /// </summary>
 /// <param name="personRole">The <see cref="PersonRole"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public PersonRoleRowViewModel(PersonRole personRole, ISession session, IViewModelBase <Thing> containerViewModel) : base(personRole, session, containerViewModel)
 {
     this.personPermissionFolder = new CDP4Composition.FolderRowViewModel("Person Permission", "Person Permission", this.Session, this);
     this.ContainedRows.Add(this.personPermissionFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #18
0
        /// <summary>
        /// Initializes the browser
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            this.CurrentModel     = this.CurrentEngineeringModelSetup.Name;
            this.CurrentIteration = this.Thing.IterationSetup.IterationNumber;

            var iterationDomainPair = this.Session.OpenIterations.SingleOrDefault(x => x.Key == this.Thing);

            if (iterationDomainPair.Equals(default(KeyValuePair <Iteration, Tuple <DomainOfExpertise, Participant> >)))
            {
                this.DomainOfExpertise = "None";
            }
            else
            {
                this.DomainOfExpertise = (iterationDomainPair.Value == null || iterationDomainPair.Value.Item1 == null)
                                        ? "None"
                                        : string.Format("{0} [{1}]", iterationDomainPair.Value.Item1.Name, iterationDomainPair.Value.Item1.ShortName);
            }

            this.RelationshipTypes         = new ReactiveList <CDP4Composition.FolderRowViewModel>();
            this.binaryRelationshipsFolder = new CDP4Composition.FolderRowViewModel("Binary Relationships", "Binary Relationships", this.Session, this);
            this.multiRelationshipsFolder  = new CDP4Composition.FolderRowViewModel("Multi Relationships", "Multi Relationships", this.Session, this);
            this.RelationshipTypes.Add(this.binaryRelationshipsFolder);
            this.RelationshipTypes.Add(this.multiRelationshipsFolder);
        }
Пример #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GlossaryRowViewModel"/> class
 /// </summary>
 /// <param name="glossary">The <see cref="Glossary"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public GlossaryRowViewModel(Glossary glossary, ISession session, IViewModelBase <Thing> containerViewModel) : base(glossary, session, containerViewModel)
 {
     this.termFolder = new CDP4Composition.FolderRowViewModel("Term", "Term", this.Session, this);
     this.ContainedRows.Add(this.termFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReviewItemDiscrepancyRowViewModel"/> class
 /// </summary>
 /// <param name="reviewItemDiscrepancy">The <see cref="ReviewItemDiscrepancy"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public ReviewItemDiscrepancyRowViewModel(ReviewItemDiscrepancy reviewItemDiscrepancy, ISession session, IViewModelBase <Thing> containerViewModel) : base(reviewItemDiscrepancy, session, containerViewModel)
 {
     this.solutionFolder = new CDP4Composition.FolderRowViewModel("Solution", "Solution", this.Session, this);
     this.ContainedRows.Add(this.solutionFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SectionRowViewModel"/> class
 /// </summary>
 /// <param name="section">The <see cref="Section"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public SectionRowViewModel(Section section, ISession session, IViewModelBase <Thing> containerViewModel) : base(section, session, containerViewModel)
 {
     this.pageFolder = new CDP4Composition.FolderRowViewModel("Page", "Page", this.Session, this);
     this.ContainedRows.Add(this.pageFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DerivedQuantityKindRowViewModel"/> class
 /// </summary>
 /// <param name="derivedQuantityKind">The <see cref="DerivedQuantityKind"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public DerivedQuantityKindRowViewModel(DerivedQuantityKind derivedQuantityKind, ISession session, IViewModelBase <Thing> containerViewModel) : base(derivedQuantityKind, session, containerViewModel)
 {
     this.quantityKindFactorFolder = new CDP4Composition.FolderRowViewModel("Quantity Kind Factor", "Quantity Kind Factor", this.Session, this);
     this.ContainedRows.Add(this.quantityKindFactorFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequirementRowViewModel"/> class
 /// </summary>
 /// <param name="requirement">The <see cref="Requirement"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public RequirementRowViewModel(Requirement requirement, ISession session, IViewModelBase <Thing> containerViewModel) : base(requirement, session, containerViewModel)
 {
     this.parametricConstraintFolder = new CDP4Composition.FolderRowViewModel("Parametric Constraint", "Parametric Constraint", this.Session, this);
     this.ContainedRows.Add(this.parametricConstraintFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefinitionRowViewModel"/> class
 /// </summary>
 /// <param name="definition">The <see cref="Definition"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public DefinitionRowViewModel(Definition definition, ISession session, IViewModelBase <Thing> containerViewModel) : base(definition, session, containerViewModel)
 {
     this.citationFolder = new CDP4Composition.FolderRowViewModel("Citation", "Citation", this.Session, this);
     this.ContainedRows.Add(this.citationFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NestedElementRowViewModel"/> class
 /// </summary>
 /// <param name="nestedElement">The <see cref="NestedElement"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public NestedElementRowViewModel(NestedElement nestedElement, ISession session, IViewModelBase <Thing> containerViewModel) : base(nestedElement, session, containerViewModel)
 {
     this.nestedParameterFolder = new CDP4Composition.FolderRowViewModel("Nested Parameter", "Nested Parameter", this.Session, this);
     this.ContainedRows.Add(this.nestedParameterFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterRowViewModel"/> class
 /// </summary>
 /// <param name="parameter">The <see cref="Parameter"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public ParameterRowViewModel(Parameter parameter, ISession session, IViewModelBase <Thing> containerViewModel) : base(parameter, session, containerViewModel)
 {
     this.valueSetFolder = new CDP4Composition.FolderRowViewModel("Value Set", "Value Set", this.Session, this);
     this.ContainedRows.Add(this.valueSetFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OptionRowViewModel"/> class
 /// </summary>
 /// <param name="option">The <see cref="Option"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public OptionRowViewModel(Option option, ISession session, IViewModelBase <Thing> containerViewModel) : base(option, session, containerViewModel)
 {
     this.nestedElementFolder = new CDP4Composition.FolderRowViewModel("Nested Element", "Nested Element", this.Session, this);
     this.ContainedRows.Add(this.nestedElementFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileRowViewModel"/> class
 /// </summary>
 /// <param name="file">The <see cref="File"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 public FileRowViewModel(File file, ISession session, IViewModelBase <Thing> containerViewModel) : base(file, session, containerViewModel)
 {
     this.fileRevisionFolder = new CDP4Composition.FolderRowViewModel("File Revision", "File Revision", this.Session, this);
     this.ContainedRows.Add(this.fileRevisionFolder);
     this.UpdateProperties();
     this.UpdateColumnValues();
 }
Пример #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeasurementScaleRowViewModel{T}"/> class
 /// </summary>
 /// <param name="measurementScale">The <see cref="MeasurementScale"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 protected MeasurementScaleRowViewModel(T measurementScale, ISession session, IViewModelBase <Thing> containerViewModel) : base(measurementScale, session, containerViewModel)
 {
     this.valueDefinitionFolder = new CDP4Composition.FolderRowViewModel("Value Definition", "Value Definition", this.Session, this);
     this.ContainedRows.Add(this.valueDefinitionFolder);
     this.mappingToReferenceScaleFolder = new CDP4Composition.FolderRowViewModel("Mapping To Reference Scale", "Mapping To Reference Scale", this.Session, this);
     this.ContainedRows.Add(this.mappingToReferenceScaleFolder);
     this.UpdateProperties();
 }
Пример #30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequirementsContainerRowViewModel{T}"/> class
 /// </summary>
 /// <param name="requirementsContainer">The <see cref="RequirementsContainer"/> associated with this row</param>
 /// <param name="session">The session</param>
 /// <param name="containerViewModel">The <see cref="IViewModelBase"/> that is the container of this <see cref="IRowViewModelBase"/></param>
 protected RequirementsContainerRowViewModel(T requirementsContainer, ISession session, IViewModelBase <Thing> containerViewModel) : base(requirementsContainer, session, containerViewModel)
 {
     this.groupFolder = new CDP4Composition.FolderRowViewModel("Group", "Group", this.Session, this);
     this.ContainedRows.Add(this.groupFolder);
     this.parameterValueFolder = new CDP4Composition.FolderRowViewModel("Parameter Value", "Parameter Value", this.Session, this);
     this.ContainedRows.Add(this.parameterValueFolder);
     this.UpdateProperties();
 }