Beispiel #1
0
 public Computer(ComputerTypes type, Processor processor, string videocard, RamTypes ramType, int driveSize, DriveTypes driveType, string purchaseTime)
 {
     this.type         = type;
     this.processor    = processor;
     this.videocard    = videocard;
     this.ramType      = ramType;
     this.driveSize    = driveSize;
     this.driveType    = driveType;
     this.purchaseTime = purchaseTime;
 }
        //constructors
        internal Computer(ComputerTypes type, ComputerCpu cpu, ComputerRam ram, IEnumerable<HardDrive> hardDrives, HardDrive videoCard, LaptopBattery battery)
        {
            this.Cpu = cpu;
            this.Ram = ram;
            this.HardDrives = hardDrives;
            this.VideoCard = videoCard;
            if (type != ComputerTypes.Laptop && type != ComputerTypes.Pc)
            {
                this.VideoCard.IsMonochrome = true;
            }

            this.battery = battery;
        }
Beispiel #3
0
        //constructors
        internal Computer(ComputerTypes type, ComputerCpu cpu, ComputerRam ram, IEnumerable <HardDrive> hardDrives, HardDrive videoCard, LaptopBattery battery)
        {
            this.Cpu        = cpu;
            this.Ram        = ram;
            this.HardDrives = hardDrives;
            this.VideoCard  = videoCard;
            if (type != ComputerTypes.Laptop && type != ComputerTypes.Pc)
            {
                this.VideoCard.IsMonochrome = true;
            }

            this.battery = battery;
        }
Beispiel #4
0
 public override void SetAttributes(ComputerTypes computerTypes, RamTypes ramTypes, DriveTypes driveTypes)
 {
     this.CType = ComputerTypes.PC;
     this.DType = driveTypes;
     this.RType = ramTypes;
 }
Beispiel #5
0
 public override void SetAttributes(ComputerTypes computerTypes, RamTypes ramTypes, DriveTypes driveTypes)
 {
     this.CType = ComputerTypes.Server;
     this.RType = RamTypes.ddr5;
     this.DType = DriveTypes.shdd;
 }
Beispiel #6
0
        public Form2(processorHandler AddProcessorInComputer, ChangeStatusHandler ChnageStatus, ComputerTypes computerType)
        {
            InitializeComponent();

            this.AddProcessor += AddProcessorInComputer;
            this.ChangeStatus += ChnageStatus;

            this.processor = new Processor();


            this.computerType = computerType;
            SetBuilder();

            this.comboBox1.Items.Add(Bits.processorBit.x32);
            this.comboBox1.Items.Add(Bits.processorBit.x64);
            this.comboBox1.SelectedIndex = 1;
        }
Beispiel #7
0
 public abstract void SetAttributes(ComputerTypes computerTypes, RamTypes ramTypes, DriveTypes driveTypes);