private void E001(bool param0 = true) { this.E000(); if (this.FE000 == null) { return; } if (param0) { this.E002(); } if (this.FE000.PE00A != byte.MaxValue) { this.FE004.Text = CE00D.E005(this.FE000.FE008[this.FE000.PE00A].FE005[0].PE001); this.FE004.Enabled = true; } if (this.FE000.PE008 != byte.MaxValue) { this.FE006.Text = CE00D.E005(this.FE000.FE008[this.FE000.PE008].FE005[0].PE001); this.FE006.Enabled = this.FE000.PE008 != this.FE000.PE00A; } if (this.FE000.PE009 == byte.MaxValue) { return; } this.FE005.Text = CE00D.E005(this.FE000.FE008[this.FE000.PE009].FE005[0].PE001); this.FE005.Enabled = this.FE000.PE009 != this.FE000.PE00A && this.FE000.PE009 != this.FE000.PE008; }
private void UpdateData() { this.InternalReset(); if (this.BoostProfileEntry == null) { return; } this.Enabled = true; this.tbProfileBoostMin0.Text = CE00D.E005(this.BoostProfileEntry.PE003); this.tbProfileBoostMax0.Text = CE00D.E005(this.BoostProfileEntry.PE004); this.lblProfileBoost0.Text = string.Format("P{0:00} - Profile", this.BoostProfileEntry.PE002); 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]; Control control1 = this.Ctrl(string.Format("tbBoostMin0Clock{0}", index)); Control control2 = this.Ctrl(string.Format("tbBoostMax0Clock{0}", index)); this.Ctrl(string.Format("lblBoostProfileMinClock{0}", index)); this.Ctrl(string.Format("lblBoostProfileMaxClock{0}", index)); control1.Enabled = true; control2.Enabled = true; control1.Text = CE00D.E005(obj.PE003); control2.Text = CE00D.E005(obj.PE004); } }
private void numClockSelector_ValueChanged(object sender, EventArgs e) { if (updating) { return; } tbClock.Text = CE00D.E005(CE00D.PE000[(int)numClockSelector.Value]); }
private string GetClockString(int index) { if (this._SliderClocks == null) { return(""); } return(string.Format("{0} MHz", CE00D.E005(this._SliderClocks[index]))); }
public void SetAllMaxClock(ushort clock) { if (this.BoostProfileEntry == null) { return; } this.tbProfileBoostMax0.Text = CE00D.E005(clock); for (int index = 0; index < this.BoostProfileEntry.FE008.Count && index < 3; ++index) { this.Ctrl(string.Format("tbBoostMax0Clock{0}", index)).Text = CE00D.E005(clock); } }
private void FillClockTableView(bool showInvalid) { byte maxBoostIndex = this.GetMaxBoostIndex(); IEnumerable <int> source = Enumerable.Select <CE018, int>(this.BoostTable.FE005, p => (int)p.PE002); int splitIndex = this.GetSplitIndex(maxBoostIndex); this.InitTableView(); for (int index = 0; index < this.BoostTable.BoostClocks.Count; ++index) { ListViewItem.ListViewSubItem itemByIndex1 = this.GetItemByIndex(index, false); ListViewItem.ListViewSubItem itemByIndex2 = this.GetItemByIndex(index, true); ushort num = this.BoostTable.BoostClocks[index].Frequency; itemByIndex1.Text = index.ToString("00"); itemByIndex2.Text = CE00D.E005(num); if (index > splitIndex && index <= maxBoostIndex) { itemByIndex1.BackColor = this._YellowBackColor; itemByIndex2.BackColor = this._YellowBackColor; itemByIndex1.ForeColor = this._YellowForeColor; itemByIndex2.ForeColor = this._YellowForeColor; } if (Enumerable.Contains <int>(source, index)) { itemByIndex1.BackColor = this._GreenBackColor; itemByIndex2.BackColor = this._GreenBackColor; itemByIndex1.ForeColor = this._GreenForeColor; itemByIndex2.ForeColor = this._GreenForeColor; } if (showInvalid && maxBoostIndex > splitIndex && (index > splitIndex && index <= maxBoostIndex) && CE00D.PE000.IndexOf(num) == -1) { itemByIndex2.Font = new Font(itemByIndex2.Font, FontStyle.Strikeout); } if (showInvalid && splitIndex > maxBoostIndex && (index >= maxBoostIndex && index < splitIndex) && CE00D.PE000.IndexOf(num) == -1) { itemByIndex2.Font = new Font(itemByIndex2.Font, FontStyle.Strikeout); } } }
private void ShiftClockTableMaxBoost(ushort maxBoost) { byte maxBoostIndex = this.GetMaxBoostIndex(); int splitIndex = this.GetSplitIndex(maxBoostIndex); int index1 = CE00D.PE000.IndexOf(maxBoost); if (maxBoostIndex > splitIndex) { for (int index2 = maxBoostIndex; index2 > splitIndex; --index2) { this.GetItemByIndex(index2, true).Text = CE00D.E005(CE00D.PE000[index1]); --index1; } } else { for (int index2 = maxBoostIndex; index2 < splitIndex; ++index2) { this.GetItemByIndex(index2, true).Text = CE00D.E005(CE00D.PE000[index1]); ++index1; } } }
private void UpdateSliderText() { this.scBoostLimit.ValueText = string.Format("{0} MHz", CE00D.E005(CE00D.PE000[this.scBoostLimit.SliderPosition])); }