Ejemplo n.º 1
0
 // Fields
 // Results
 // Business constructor
 public Share(
     Individual individual
     ,MessageBoard messageBoard
     )
 {
     InitializeResults();
     _individual = new PredecessorObj<Individual>(this, RoleIndividual, individual);
     _messageBoard = new PredecessorObj<MessageBoard>(this, RoleMessageBoard, messageBoard);
 }
Ejemplo n.º 2
0
 // Results
 // Business constructor
 public Message(
     MessageBoard messageBoard
     ,Domain domain
     ,string text
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _messageBoard = new PredecessorObj<MessageBoard>(this, RoleMessageBoard, messageBoard);
     _domain = new PredecessorObj<Domain>(this, RoleDomain, domain);
     _text = text;
 }
Ejemplo n.º 3
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                MessageBoard newFact = new MessageBoard(memento);

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

                return newFact;
            }
 public MessageBoardViewModel(MessageBoard messageBoard)
 {
     _messageBoard = messageBoard;
 }