public void SetCompanySelected(Company company, bool value)
 {
     if (value == true && !_selectedCompanies.Contains(company))
         _selectedCompanies.Add(company);
     else if (value == false && _selectedCompanies.Contains(company))
         _selectedCompanies.Remove(company);
 }
 public CompanyHeaderViewModel(Company company, NewGameSelectionModel selection)
 {
     _company = company;
     _selection = selection;
 }
 public CompanyHeaderViewModel(Company company)
 {
     _company = company;
 }
 // Results
 // Business constructor
 public Company__name(
     Company company
     ,IEnumerable<Company__name> prior
     ,string value
     )
 {
     InitializeResults();
     _company = new PredecessorObj<Company>(this, RoleCompany, company);
     _prior = new PredecessorList<Company__name>(this, RolePrior, prior);
     _value = value;
 }
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Company newFact = new Company(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;
            }
 // Business constructor
 public Turn(
     Company company
     ,Round round
     )
 {
     InitializeResults();
     _company = new PredecessorObj<Company>(this, RoleCompany, company);
     _round = new PredecessorObj<Round>(this, RoleRound, round);
 }
 // Fields
 // Results
 // Business constructor
 public Director(
     Individual individual
     ,Company company
     )
 {
     InitializeResults();
     _individual = new PredecessorObj<Individual>(this, RoleIndividual, individual);
     _company = new PredecessorObj<Company>(this, RoleCompany, company);
 }
 public bool IsCompanySelected(Company company)
 {
     return _selectedCompanies.Contains(company);
 }
 public GameSelectionViewModel(Company company, GameSelectionModel selection)
 {
     _company = company;
     _selection = selection;
 }