MainForm.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.Threading;
namespace JColorPad
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
Config.Init();
this.Location = Config.Location;
this.ck_TopMost.Checked = this.TopMost = Config.TopMost;
CurrentColor = Color.Black;
Txt16.Text = "#000000";
this.Text = "取色器" + (this.TopMost ? "[置顶]" : "");
}
bool IsMouseDown = false;
ExtractColor etc;
public Color CurrentColor
{
get { return lbColor.BackColor; }
set
{
btnCopy.Text = "复制";
lbColor.BackColor = value;
lbColor.ForeColor = value;
label3.Text = string.Format("R:{0},G:{1},B:{2}", value.R, value.G, value.B);
Txt16.Text= ColorTranslator.ToHtml(value);
}
}
public Point DefaultLocation { get; set; }
public Point CurrentLocation { get; set; }
private void MainForm_Load(object sender, EventArgs e)
{
DefaultLocation = this.Location;
this.extractPad1.CenterPoint = new Point(this.extractPad1.Width / 2, this.extractPad1.Height / 2);
}
public override string Text
{
get
{
return base.Text;
}
set
后面还有 119 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。