Пример #1
0
 public ushort GetAllMaxClock()
 {
     if (!this.AreAllMaxClocksEqual())
     {
         return(0);
     }
     return(CE00D.E006(this.tbProfileBoostMax0.Text));
 }
Пример #2
0
    private void InitSlider()
    {
        ushort num1 = CE00D.E006(this.GetItemByIndex(this.GetMaxBoostIndex(), true).Text);

        this.SliderMaximum = this._SliderClocks.Count - 1;
        int num2 = this._SliderClocks.IndexOf(num1);

        if (num2 < 0)
        {
            return;
        }
        this.SliderPosition = num2;
    }
Пример #3
0
    public void ApplyChanges()
    {
        if (this.BoostTable == null || !this.Enabled)
        {
            return;
        }
        byte maxBoostIndex = this.GetMaxBoostIndex();
        int  splitIndex    = this.GetSplitIndex(maxBoostIndex);

        for (int index = maxBoostIndex; index > splitIndex; --index)
        {
            ListViewItem.ListViewSubItem itemByIndex = this.GetItemByIndex(index, true);
            this._BoostTable.BoostClocks[index].Frequency = CE00D.E006(itemByIndex.Text);
        }
    }
Пример #4
0
    public bool AreAllMaxClocksEqual()
    {
        if (this.BoostProfileEntry == null)
        {
            return(false);
        }
        ushort num1 = CE00D.E006(this.tbProfileBoostMax0.Text);
        int    num2 = 1;
        ushort num3 = num1;

        for (int index = 0; index < this.BoostProfileEntry.FE008.Count && index < 3; ++index)
        {
            num3 += CE00D.E006(this.Ctrl(string.Format("tbBoostMax0Clock{0}", index)).Text);
            ++num2;
        }
        return(num3 / num2 == num1);
    }
Пример #5
0
    public void ApplyChanges()
    {
        if (this.BoostProfileEntry == null)
        {
            return;
        }
        this.BoostProfileEntry.PE003 = CE00D.E006(this.tbProfileBoostMin0.Text);
        this.BoostProfileEntry.PE004 = CE00D.E006(this.tbProfileBoostMax0.Text);
        List <CE01B> list = Enumerable.ToList <CE01B>(Enumerable.OrderBy <CE01B, byte>(this.BoostProfileEntry.FE008, c => c.PE001));

        for (int index = 0; index < list.Count && index < 3; ++index)
        {
            CE01B obj = list[index];
            obj.PE003 = CE00D.E006(this.Ctrl(string.Format("tbBoostMin0Clock{0}", index)).Text);
            obj.PE004 = CE00D.E006(this.Ctrl(string.Format("tbBoostMax0Clock{0}", index)).Text);
        }
    }
    private void UpdateClockSelector()
    {
        updating = true;
        if (string.IsNullOrEmpty(tbClock.Text))
        {
            numClockSelector.Value = new Decimal(0);
        }
        ushort num1 = CE00D.E006(tbClock.Text);

        foreach (ushort num2 in CE00D.PE000)
        {
            if (num1 <= num2)
            {
                numClockSelector.Value = CE00D.PE000.IndexOf(num2);
                break;
            }
        }
        numClockSelector.Enabled = CE00D.PE000.IndexOf(num1) >= 0;
        updating = false;
    }
Пример #7
0
 public void ApplyChanges()
 {
     if (this.FE000 == null)
     {
         return;
     }
     if (this.FE000.PE009 != byte.MaxValue && this.FE005.Enabled)
     {
         this.FE000.FE008[this.FE000.PE009].FE005[0].PE001 = CE00D.E006(this.FE005.Text);
     }
     if (this.FE000.PE00A != byte.MaxValue && this.FE004.Enabled)
     {
         this.FE000.FE008[this.FE000.PE00A].FE005[0].PE001 = CE00D.E006(this.FE004.Text);
     }
     if (this.FE000.PE008 == byte.MaxValue || !this.FE006.Enabled)
     {
         return;
     }
     this.FE000.FE008[this.FE000.PE008].FE005[0].PE001 = CE00D.E006(this.FE006.Text);
 }
Пример #8
0
    private void InitSliderClocks()
    {
        byte          maxBoostIndex = this.GetMaxBoostIndex();
        int           splitIndex    = this.GetSplitIndex(maxBoostIndex);
        ushort        num1          = CE00D.E006(this.GetItemByIndex(maxBoostIndex, true).Text);
        ushort        num2          = CE00D.E006(this.GetItemByIndex(splitIndex, true).Text);
        int           num3          = CE00D.E006(this.GetItemByIndex(splitIndex + 1, true).Text);
        List <ushort> list          = new List <ushort>();

        foreach (ushort num4 in CE00D.PE000)
        {
            if (num4 >= num2)
            {
                list.Add(num4);
            }
        }
        int num5 = 0;

        for (int index = 0; index < list.Count; ++index)
        {
            if (list[index] == num1)
            {
                num5 = index;
                break;
            }
        }
        for (int index = num5; index >= 0; --index)
        {
            if (maxBoostIndex - splitIndex - index > 0)
            {
                list.RemoveAt(index);
            }
        }
        this._SliderClocks = list;
        this.InitSlider();
    }