| | |
| | | }; |
| | | }
|
| | |
|
| | | /// <summary> |
| | | /// PanelColorBefore |
| | | /// </summary>
|
| | | private void PanelColor(NormalViewControl btnColor, SeekBarControl seekBar1, int R1, int G1, int B1) |
| | | { |
| | | var form = new PanelColorSelectForm(); |
| | | form.AddForm(R1, G1, B1); |
| | | form.FinishSelectColorEvent += (Rcolor, Gcolor, Bcolor) => |
| | | { |
| | | R1 = Rcolor; |
| | | G1 = Gcolor; |
| | | B1 = Bcolor; |
| | | |
| | | this.keyColorData.CloseColorR = Convert.ToString(Rcolor, 16); |
| | | this.keyColorData.CloseColorG = Convert.ToString(Gcolor, 16); |
| | | this.keyColorData.CloseColorB = Convert.ToString(Bcolor, 16); |
| | | |
| | | btnColor.BackgroundColor = this.GetColorByRGB((byte)Rcolor, (byte)Gcolor, (byte)Bcolor); |
| | | //变更滑动条的颜色 |
| | | seekBar1.ProgressBarColor = btnColor.BackgroundColor; |
| | | }; |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 点击后_____________________________
|