Exemple #1
0
 private void InitializeComponent()
 {
     this.perfTableEntryControl1 = new UCPerfTableEntryControl();
     this.lblTopSpace            = new Label();
     this.SuspendLayout();
     this.perfTableEntryControl1.Location = new Point(0, 17);
     this.perfTableEntryControl1.Name     = "perfTableEntryControl1";
     this.perfTableEntryControl1.Size     = new Size(411, 55);
     this.perfTableEntryControl1.TabIndex = 0;
     this.lblTopSpace.AutoSize            = true;
     this.lblTopSpace.Location            = new Point(115, 0);
     this.lblTopSpace.Name     = "lblTopSpace";
     this.lblTopSpace.Size     = new Size(24, 13);
     this.lblTopSpace.TabIndex = 76;
     this.lblTopSpace.Text     = "Min";
     this.lblTopSpace.Visible  = false;
     this.AutoScaleDimensions  = new SizeF(6f, 13f);
     //this.AutoScaleMode = AutoScaleMode.Font;
     this.Controls.Add(this.lblTopSpace);
     this.Controls.Add(this.perfTableEntryControl1);
     this.Name = "PerfTableControl";
     this.Size = new Size(416, 238);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #2
0
    public uint GetP0AndP2MemoryClock()
    {
        if (!this.AreP0AndP2MMemoryClocksSame())
        {
            return(0U);
        }
        UCPerfTableEntryControl obj = Enumerable.FirstOrDefault <UCPerfTableEntryControl>(Enumerable.Where <UCPerfTableEntryControl>(this._EntryControlList, e =>
        {
            if (e.PerfEntry != null)
            {
                return(Enumerable.Contains <byte>(new byte[1], e.PerfEntry.Caption));
            }
            return(false);
        }));

        if (obj == null)
        {
            return(0U);
        }
        return(obj.GetMemoryClock());
    }
Exemple #3
0
    private void UpdateData()
    {
        this.InternalReset();
        if (this.PerfTable == null)
        {
            return;
        }
        this.Enabled = true;
        int num = this.lblTopSpace.Top + this.lblTopSpace.Height + 1;

        this._EntryControlList = new List <UCPerfTableEntryControl>();
        foreach (Voltage obj1 in Enumerable.ToList <Voltage>(Enumerable.OrderBy <Voltage, byte>(Enumerable.Where <Voltage>(this.PerfTable.Voltages, e => !e.PE004), e => e.Caption)))
        {
            UCPerfTableEntryControl obj2 = new UCPerfTableEntryControl();
            obj2.PerfEntry         = obj1;
            obj2.Left              = 0;
            obj2.Top               = num;
            obj2.OnAnyTextChanged += new EventHandler(this.ctrl_OnAnyTextChanged);
            this.Controls.Add(obj2);
            this._EntryControlList.Add(obj2);
            num += obj2.Height;
        }
    }