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); } }
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); } }