public Company(string _name, Address _address, Product _product, string tool) { name = _name; address = _address; product = _product; motivationalTool = tool; }
public static List<Company> createCompanies() { List<Company> list = new List<Company>(); Address address = new Address("1000 Big Bucks Avenue", "Redmond", "WA", 98052); list.Add(new Company("Microsoft", address, Product.Word, "unnecessary bloatware designed to make your digital life miserable")); address = new Address("1.12 WordPerfect Still Matters Lane", "Ottowa", "Ontario, Canada", 11111); //pretend zip code list.Add(new Company("Corel", address, Product.WordPerfect, "Microsoft products")); return list; }
public Company(string _name, Address _address, Product _product, string tool, string _salesOfficer, string _enforcementOfficer) { name = _name; address = _address; product = _product; motivationalTool = tool; date = DateTime.Now.ToString("MMMM d, yyyy"); masthead = getMasthead(); salesOfficer = _salesOfficer; enforcementOfficer = _enforcementOfficer; salesOfficerSenderInfo = getSenderInfo(salesOfficer, "Sales Officer"); enforcementOfficerSenderInfo = getSenderInfo(enforcementOfficer, "Enforcement Officer"); }