Пример #1
0
 public MainViewModel(Community community, Individual individual, Company company, ActivitySelection activitySelection)
 {
     _community = community;
     _individual = individual;
     _company = company;
     _activitySelection = activitySelection;
 }
Пример #2
0
 public ActivityViewModel(Community community, Individual individual, Quarter quarter, ActivitySelection activitySelection)
 {
     _community = community;
     _individual = individual;
     _quarter = quarter;
     _activitySelection = activitySelection;
 }
Пример #3
0
 // Fields
 // Results
 // Business constructor
 public IndividualProfile(
     Individual individual
     ,Profile profile
     )
 {
     InitializeResults();
     _individual = new PredecessorObj<Individual>(this, GetRoleIndividual(), individual);
     _profile = new PredecessorObj<Profile>(this, GetRoleProfile(), profile);
 }
Пример #4
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Individual newFact = new Individual(memento);

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

                return newFact;
            }