Source/ColorPicker.cs
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace DevComponents.UI
{
/// <summary>
/// Provides popup color picker.
/// </summary>
[ToolboxItem(false)]
internal class ColorPicker : UserControl
{
#region Private Variables
private Color[] m_CustomColors=new Color[48];
private Rectangle[] m_CustomColorsPos=new Rectangle[48];
private object m_ColorScheme=null;
private string m_TransText="";
private TabControl tabControl1;
private TabPage tabPage1;
private TabPage tabPage2;
private TabPage tabPage3;
private TabPage tabPage4;
private Label label1;
private ListBox listScheme;
private Button btnOK;
private Button btnCancel;
private Panel colorPanel;
private ListBox listSystem;
private ListBox listWeb;
private Color m_SelectedColor=Color.Empty;
private string m_SelectedColorSchemeName="";
private Panel colorPreview;
private TrackBar transparencyTrack;
private bool m_Canceled=false;
private IWindowsFormsEditorService m_EditorService=null;
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
#endregion
#region Constructor and Dispose
public ColorPicker()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
InitCustomColors();
InitOtherColors();
m_TransText=label1.Text;
}
后面还有 599 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。