Advertisement
wis3_guy

Customer Group Class (Update)

Feb 13th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace applicationName
  7. {
  8. public class CustomerGroup
  9. {
  10. //Members
  11. private int group_ID;
  12. private Employee account_Executive = new Employee();
  13. private List<Customer> customerList = new List<Customer>();
  14. private List<Customer> unsortedCustomer = new List<Customer>();
  15. //private DateTime startDate;
  16. //private int totalTransactions;
  17.  
  18.  
  19.  
  20.  
  21. public CustomerGroup()
  22. {
  23. //Constructors
  24. group_ID = 0;
  25. account_Executive = new Employee();
  26. List<Customer> unsortedCustomer = new List<Customer>();
  27. }
  28.  
  29.  
  30. public CustomerGroup(int newgroupID, Employee newaccountExecutive, List<Customer> newUnsortedCustomer)
  31. {
  32. group_ID = newgroupID;
  33. //could say ** Group_ID = group_ID;
  34. //or ** this.group_ID = group_ID;
  35. account_Executive = newaccountExecutive;
  36. unsortedCustomer = newUnsortedCustomer;
  37. }
  38.  
  39. /*
  40. public CustomerGroup(bool test)
  41. {
  42. //Constructors
  43. group_ID = "TestGroup";
  44. account_Executive = new Employee();
  45. List<Customer> unsortedCustomer = new List<Customer>();
  46. Customer tcust;
  47. * for (int i = 0; i < 20; i++)
  48. * {
  49. * tcust = new Customer(i);
  50. * customerList.Add(tcust);
  51. * }
  52. }
  53. */
  54.  
  55. public int GroupID
  56. {
  57. get { return group_ID; }
  58. set { group_ID = value; }
  59. }
  60.  
  61. public Employee AccountExecutive
  62. {
  63. get { return account_Executive; }
  64. set { account_Executive = value; }
  65. }
  66.  
  67. public List<Customer> CustomerList //I capitalized the word "customer" here, because I kept getting an error in my get-set method
  68. {
  69. get { return customerList; }
  70. set { customerList = value; }
  71. }
  72.  
  73.  
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement