public MacroViewModel(Category category, ActivitySelection activitySelection) { _category = category; _activitySelection = activitySelection; }
// Business constructor public ActivityDefinition( Category category ,string identifier ) { InitializeResults(); _category = new PredecessorObj<Category>(this, GetRoleCategory(), category); _identifier = identifier; }
// Results // Business constructor public Category__description( Category category ,IEnumerable<Category__description> prior ,string value ) { InitializeResults(); _category = new PredecessorObj<Category>(this, GetRoleCategory(), category); _prior = new PredecessorList<Category__description>(this, GetRolePrior(), prior); _value = value; }
// Results // Business constructor public Category__ordinal( Category category ,IEnumerable<Category__ordinal> prior ,int value ) { InitializeResults(); _category = new PredecessorObj<Category>(this, GetRoleCategory(), category); _prior = new PredecessorList<Category__ordinal>(this, GetRolePrior(), prior); _value = value; }
public CorrespondenceFact CreateFact(FactMemento memento) { Category newFact = new Category(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._identifier = (string)_fieldSerializerByType[typeof(string)].ReadData(output); } } return newFact; }