Esempio n. 1
0
        protected internal ProjectItem(ProjectItemType type,
                                       Project project) : base(type)
        {
            Assertion.Require(type, "type");
            Assertion.Require(project, "project");

            Assertion.Require(!project.IsEmptyInstance,
                              "Project can't be the empty instance.");


            this.Project = project;
            this.Parent  = ProjectItem.Empty;
        }
Esempio n. 2
0
        protected internal ProjectItem(ProjectItemType type,
                                       Project project,
                                       JsonObject data) : base(type)
        {
            Assertion.Require(type, "type");
            Assertion.Require(project, "project");
            Assertion.Require(data, "data");

            Assertion.Require(!project.IsEmptyInstance,
                              "Project can't be the empty instance.");


            this.Project = project;
            this.Parent  = ProjectItem.Empty;

            this.AssertIsValid(data);

            this.Load(data);
        }
Esempio n. 3
0
 protected Activity(ProjectItemType powertype) : base(powertype)
 {
     // Required by Empiria Framework for all partitioned types.
 }