예제 #1
0
파일: Program.cs 프로젝트: Opentany/Tech
 public override void Remove(Component component)
 {
     _children.Remove(component);
 }
예제 #2
0
 public Computer(Component CPU, Component GPU, Component Mobo, Component Disk, Component PSU, Component Case, Component RAM)
 {
     this.RAM = RAM;
     this.Processor = CPU;
     this.GPU = GPU;
     this.Motherboard = Mobo;
     this.Disk = Disk;
     this.Case = Case;
     this.PSU = PSU;
     this.Price = this.Processor.Price + this.GPU.Price + this.Motherboard.Price + this.Disk.Price +
                  this.PSU.Price + this.RAM.Price + this.Case.Price;
 }
예제 #3
0
파일: Program.cs 프로젝트: Opentany/Tech
 public override void Add(Component component)
 {
     _children.Add(component);
 }
예제 #4
0
파일: Program.cs 프로젝트: Opentany/Tech
 public abstract void Remove(Component c);
예제 #5
0
파일: Program.cs 프로젝트: Opentany/Tech
 public abstract void Add(Component c);
예제 #6
0
파일: Program.cs 프로젝트: Opentany/Tech
 public override void Remove(Component c)
 {
     Console.WriteLine("Cannot remove from a leaf");
 }
예제 #7
0
파일: Program.cs 프로젝트: Opentany/Tech
 public override void Add(Component c)
 {
     Console.WriteLine("Cannot add to a leaf");
 }