Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
 => new ClrTypeClosure(openType,
                       arrayi(arguments, (i, parameter) => typearg(parameter.argType, parameter.argName, i)));