public PowerSupplyEditor(openType type, string name) { InitializeComponent(); switch (type) { case openType.edit: tbName.ReadOnly = true; break; case openType.view: tbName.ReadOnly = true; tbPrice.ReadOnly = true; tbCompany.ReadOnly = true; tbAmount.ReadOnly = true; tbEfficiency.ReadOnly = true; tbPower.ReadOnly = true; btnSave.Visible = false; break; } LoadData(name); }
public SystemCaseEditor(openType type, string name) { InitializeComponent(); switch (type) { case openType.edit: tbName.ReadOnly = true; break; case openType.view: tbName.ReadOnly = true; tbPrice.ReadOnly = true; tbCompany.ReadOnly = true; tbAmount.ReadOnly = true; tbFansAmount.ReadOnly = true; tbUSBPorts.ReadOnly = true; btnSave.Visible = false; break; } LoadData(name); }
public RAMEditor(openType type, string name) { InitializeComponent(); switch (type) { case openType.edit: tbName.ReadOnly = true; break; case openType.view: tbName.ReadOnly = true; tbPrice.ReadOnly = true; tbCompany.ReadOnly = true; tbAmount.ReadOnly = true; tbCapacity.ReadOnly = true; tbFrequency.ReadOnly = true; tbType.ReadOnly = true; btnSave.Visible = false; break; } LoadData(name); }
public HardDriveEditor(openType type, string name) { InitializeComponent(); switch (type) { case openType.edit: tbName.ReadOnly = true; break; case openType.view: tbName.ReadOnly = true; tbPrice.ReadOnly = true; tbCompany.ReadOnly = true; tbAmount.ReadOnly = true; tbCapacity.ReadOnly = true; tbRotateSpeed.ReadOnly = true; tbConnectionInterface.ReadOnly = true; btnSave.Visible = false; break; } LoadData(name); }
public MotherboardEditor(openType type, string name) { InitializeComponent(); switch (type) { case openType.edit: tbName.ReadOnly = true; break; case openType.view: tbName.ReadOnly = true; tbPrice.ReadOnly = true; tbCompanyName.ReadOnly = true; tbAmount.ReadOnly = true; tbCPUSupport.ReadOnly = true; tbSocket.ReadOnly = true; tbFormFactor.ReadOnly = true; btnSave.Visible = false; break; } LoadData(name); }
public ProcessorEditor(openType type, string name) { InitializeComponent(); switch (type) { case openType.edit: tbName.ReadOnly = true; break; case openType.view: tbName.ReadOnly = true; tbPrice.ReadOnly = true; tbCompany.ReadOnly = true; tbAmount.ReadOnly = true; tbCoresNum.ReadOnly = true; tbFrequency.ReadOnly = true; tbProcessTechnology.ReadOnly = true; tbCacheSize.ReadOnly = true; tbThermalDesignPower.ReadOnly = true; btnSave.Visible = false; break; } LoadData(name); }
=> new ClrTypeClosure(openType, arrayi(arguments, (i, parameter) => typearg(parameter.argType, parameter.argName, i)));