Exemplo n.º 1
0
 public ActivityViewModel(Activity activity)
 {
     _activity = activity;
 }
Exemplo n.º 2
0
 // Results
 // Business constructor
 public Activity__multiplier(
     Activity activity
     ,IEnumerable<Activity__multiplier> prior
     ,int value
     )
 {
     InitializeResults();
     _activity = new PredecessorObj<Activity>(this, GetRoleActivity(), activity);
     _prior = new PredecessorList<Activity__multiplier>(this, GetRolePrior(), prior);
     _value = value;
 }
Exemplo n.º 3
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Activity newFact = new Activity(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                        newFact._activityDate = (DateTime)_fieldSerializerByType[typeof(DateTime)].ReadData(output);
                    }
                }

                return newFact;
            }
Exemplo n.º 4
0
 // Results
 // Business constructor
 public Activity__description(
     Activity activity
     ,IEnumerable<Activity__description> prior
     ,string value
     )
 {
     InitializeResults();
     _activity = new PredecessorObj<Activity>(this, GetRoleActivity(), activity);
     _prior = new PredecessorList<Activity__description>(this, GetRolePrior(), prior);
     _value = value;
 }