예제 #1
0
 private void DetachMotherboard(Motherboard entity)
 {
     entity.MemoryType = null;
 }
예제 #2
0
 private void DetachMotherboards(Motherboard entity)
 {
     entity.GPU = null;
 }
예제 #3
0
 private void AttachMotherboard(Motherboard entity)
 {
     entity.MemoryType = this;
 }
예제 #4
0
 private bool FilterMotherboards(Motherboard entity)
 {
     return (entity.SocketId == this.Id);
 }
예제 #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Motherboards EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMotherboards(Motherboard motherboard)
 {
     base.AddObject("Motherboards", motherboard);
 }
예제 #6
0
 private void DetachMotherboards(Motherboard entity)
 {
     entity.PowerType = null;
 }
예제 #7
0
 private void AttachMotherboards(Motherboard entity)
 {
     entity.Socket = this;
 }
예제 #8
0
 private void DetachMotherboards(Motherboard entity)
 {
     entity.Device = null;
 }
예제 #9
0
 private bool FilterMotherboards(Motherboard entity)
 {
     return (entity.DeviceId == this.Id);
 }
예제 #10
0
 private bool FilterMotherboard(Motherboard entity)
 {
     return (entity.ChipsetId == this.Id);
 }
예제 #11
0
 private void AttachMotherboards(Motherboard entity)
 {
     entity.Device = this;
 }
예제 #12
0
 private void DetachMotherboard(Motherboard entity)
 {
     entity.Chipset = null;
 }
예제 #13
0
 private void AttachMotherboard(Motherboard entity)
 {
     entity.Chipset = this;
 }
예제 #14
0
        protected override void OnAddCommand()
        {
            var newMotherboard = new Motherboard();
            var newDevice = new Device();
            newMotherboard.Device = newDevice;

            this.Context.Motherboards.Add(newMotherboard);
            this.MotherboardsView.MoveCurrentTo(newMotherboard);
        }
예제 #15
0
 private bool FilterMotherboard(Motherboard entity)
 {
     return (entity.MemoryTypeId == this.Id);
 }
예제 #16
0
 private void AttachMotherboards(Motherboard entity)
 {
     entity.FormFactor = this;
 }
예제 #17
0
 private void AttachMotherboards(Motherboard entity)
 {
     entity.PowerType = this;
 }
예제 #18
0
 private void DetachMotherboards(Motherboard entity)
 {
     entity.FormFactor = null;
 }
예제 #19
0
 private bool FilterMotherboards(Motherboard entity)
 {
     return (entity.PowerTypeId == this.Id);
 }
예제 #20
0
 private bool FilterMotherboards(Motherboard entity)
 {
     return (entity.FormFactorId == this.Id);
 }
예제 #21
0
 private void DetachMotherboards(Motherboard entity)
 {
     entity.Socket = null;
 }
예제 #22
0
 private void AttachMotherboards(Motherboard entity)
 {
     entity.GPU = this;
 }
예제 #23
0
 private bool FilterMotherboard(Motherboard entity)
 {
     return (entity.Id == this.MotherBoardId);
 }
예제 #24
0
 /// <summary>
 /// Create a new Motherboard object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="frequency">Initial value of the Frequency property.</param>
 /// <param name="sATA">Initial value of the SATA property.</param>
 /// <param name="socketId">Initial value of the SocketId property.</param>
 /// <param name="powerTypeId">Initial value of the PowerTypeId property.</param>
 /// <param name="memoryTypeId">Initial value of the MemoryTypeId property.</param>
 /// <param name="chipsetId">Initial value of the ChipsetId property.</param>
 /// <param name="formFactorId">Initial value of the FormFactorId property.</param>
 /// <param name="deviceId">Initial value of the DeviceId property.</param>
 public static Motherboard CreateMotherboard(global::System.Int32 id, global::System.Int16 frequency, global::System.Int16 sATA, global::System.Int32 socketId, global::System.Int32 powerTypeId, global::System.Int32 memoryTypeId, global::System.Int32 chipsetId, global::System.Int32 formFactorId, global::System.Int32 deviceId)
 {
     Motherboard motherboard = new Motherboard();
     motherboard.Id = id;
     motherboard.Frequency = frequency;
     motherboard.SATA = sATA;
     motherboard.SocketId = socketId;
     motherboard.PowerTypeId = powerTypeId;
     motherboard.MemoryTypeId = memoryTypeId;
     motherboard.ChipsetId = chipsetId;
     motherboard.FormFactorId = formFactorId;
     motherboard.DeviceId = deviceId;
     return motherboard;
 }