コード例 #1
0
 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);
 }
コード例 #2
0
 public CompanyHeaderViewModel(Company company, NewGameSelectionModel selection)
 {
     _company = company;
     _selection = selection;
 }
コード例 #3
0
 public CompanyHeaderViewModel(Company company)
 {
     _company = company;
 }
コード例 #4
0
 // 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;
 }
コード例 #5
0
            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;
            }
コード例 #6
0
 // Business constructor
 public Turn(
     Company company
     ,Round round
     )
 {
     InitializeResults();
     _company = new PredecessorObj<Company>(this, RoleCompany, company);
     _round = new PredecessorObj<Round>(this, RoleRound, round);
 }
コード例 #7
0
 // 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);
 }
コード例 #8
0
 public bool IsCompanySelected(Company company)
 {
     return _selectedCompanies.Contains(company);
 }
コード例 #9
0
 public GameSelectionViewModel(Company company, GameSelectionModel selection)
 {
     _company = company;
     _selection = selection;
 }