コード例 #1
0
        /// <summary>
        /// Specification preset
        /// </summary>
        private void SetLabels()
        {
            var details = new CpuSpecs().GetDetails();

            if (details == null)
            {
                return;
            }
            lblManBox.Text = details.Manufacturer;
            lblFamBox.Text = details.Family;
            lblModBox.Text = details.Model;
            lblCorBox.Text = $@"{details.Cores} / {details.Threads}";
            lblCloBox.Text = $@"{details.Clock} / {details.Boost}";
        }
コード例 #2
0
        /// <summary>
        /// Write all cpu details
        /// </summary>
        private void WriteLabels()
        {
            var d = new CpuSpecs().GetDetails();

            if (d == null)
            {
                return;
            }
            lblBasBox.Text = d.BaseClock;
            lblBioBox.Text = d.BiosNames;
            lblBooBox.Text = d.Boost;
            lblCloBox.Text = d.Clock;
            lblCodBox.Text = d.CodeName;
            lblCorBox.Text = d.Cores;
            lblDieBox.Text = d.DieSize;
            lblFamBox.Text = d.Family;
            lblFouBox.Text = d.Foundry;
            lblFulbox.Text = d.FullName;
            lblGenBox.Text = d.Generation;
            lblGpuBox.Text = d.Gpu;
            lblL1Box.Text  = d.L1;
            lblL2Box.Text  = d.L2;
            lblL3Box.Text  = d.L3;
            lblLitBox.Text = d.Lithography;
            lblManBox.Text = d.Manufacturer;
            lblMarBox.Text = d.Market;
            lblMaxBox.Text = d.MaxTemp;
            lblMemBox.Text = d.Memory;
            lblModBox.Text = d.Model;
            lblMulBox.Text = d.Multiplier;
            lblPacBox.Text = d.Package;
            lblParBox.Text = d.Part;
            lblRelBox.Text = d.Released;
            lblSerBox.Text = d.Series;
            lblSmpBox.Text = d.SmpCpu;
            lblSocBox.Text = d.Socket;
            lblStaBox.Text = d.Status;
            lblTdpBox.Text = d.Tdp;
            lblThrBox.Text = d.Threads;
            lblTraBox.Text = d.Transistors;
            lblUnlBox.Text = d.Unlocked;
            lblVolBox.Text = d.Voltage;
            var split = d.Features.Split(' ');

            foreach (var s in split)
            {
                featuresContainer.Controls.Add(GetLabel(s));
            }
        }