Пример #1
0
 public CompanyViewModel(Share share, NavigationModel navigationModel, NewEntryModel newEntry)
 {
     _newEntry = newEntry;
     _share = share;
     _navigationModel = navigationModel;
 }
Пример #2
0
 // Fields
 // Results
 // Business constructor
 public ShareRevoke(
     Share share
     )
 {
     InitializeResults();
     _share = new PredecessorObj<Share>(this, GetRoleShare(), share);
 }
 public CompanyHeaderViewModel(Share share)
 {
     _share = share;
 }
Пример #4
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Share newFact = new Share(memento);

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

                return newFact;
            }