示例#1
0
        public bool IsValidProduct()
        {
            if (!PersonalComputer.IsValidProduct() || !Software.IsValueValid())
            {
                return(false);
            }

            return(true);
        }
示例#2
0
 public bool SetPersonalComputer(PersonalComputer personalComputer)
 {
     PersonalComputer = personalComputer;
     return(true);
 }
示例#3
0
 public string GetProductDescription()
 {
     return(PersonalComputer.GetProductDescription() + "\n" + Software.GetComponentDescription());
 }
示例#4
0
 public Workstation(PersonalComputer personalComputer, Software software)
 {
     PersonalComputer = PersonalComputer;
     Software         = Software;
 }