📄 fcolor.cs
字号:
this.textBox14.Text = "";
this.textBox14.MouseDown += new System.Windows.Forms.MouseEventHandler(this.textBox14_MouseDown);
//
// textBox15
//
this.textBox15.Location = new System.Drawing.Point(114, 360);
this.textBox15.Name = "textBox15";
this.textBox15.ReadOnly = true;
this.textBox15.TabIndex = 14;
this.textBox15.Text = "";
this.textBox15.MouseDown += new System.Windows.Forms.MouseEventHandler(this.textBox15_MouseDown);
//
// textBox16
//
this.textBox16.Location = new System.Drawing.Point(114, 384);
this.textBox16.Name = "textBox16";
this.textBox16.ReadOnly = true;
this.textBox16.TabIndex = 15;
this.textBox16.Text = "";
this.textBox16.MouseDown += new System.Windows.Forms.MouseEventHandler(this.textBox16_MouseDown);
//
// btnOK
//
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.Location = new System.Drawing.Point(240, 400);
this.btnOK.Name = "btnOK";
this.btnOK.TabIndex = 16;
this.btnOK.Text = "OK";
//
// FColor
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(328, 437);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.btnOK,
this.textBox16,
this.textBox15,
this.textBox14,
this.textBox13,
this.textBox12,
this.textBox11,
this.textBox10,
this.textBox9,
this.textBox8,
this.textBox7,
this.textBox6,
this.textBox5,
this.textBox4,
this.textBox3,
this.textBox2,
this.textBox1});
this.Name = "FColor";
this.Text = "FColor";
this.ResumeLayout(false);
}
#endregion
private void textBox1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox2_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox3_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox4_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox5_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox6_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox7_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox8_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox9_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox10_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox11_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox12_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox13_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox14_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox15_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
private void textBox16_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if( colorDialog1.ShowDialog( this ) == DialogResult.OK )
{
((TextBox)sender).BackColor = colorDialog1.Color;
}
}
public int[] ColorMap
{
get
{
_Color[0] = textBox1.BackColor.ToArgb();
_Color[1] = textBox2.BackColor.ToArgb();
_Color[2] = textBox3.BackColor.ToArgb();
_Color[3] = textBox4.BackColor.ToArgb();
_Color[4] = textBox5.BackColor.ToArgb();
_Color[5] = textBox6.BackColor.ToArgb();
_Color[6] = textBox7.BackColor.ToArgb();
_Color[7] = textBox8.BackColor.ToArgb();
_Color[8] = textBox9.BackColor.ToArgb();
_Color[9] = textBox10.BackColor.ToArgb();
_Color[10] = textBox11.BackColor.ToArgb();
_Color[11] = textBox12.BackColor.ToArgb();
_Color[12] = textBox13.BackColor.ToArgb();
_Color[13] = textBox14.BackColor.ToArgb();
_Color[14] = textBox15.BackColor.ToArgb();
_Color[15] = textBox16.BackColor.ToArgb();
return( _Color );
}
set
{
_Color = value;
textBox1.BackColor = Color.FromArgb(_Color[0]);
textBox2.BackColor = Color.FromArgb(_Color[1]);
textBox3.BackColor = Color.FromArgb(_Color[2]);
textBox4.BackColor = Color.FromArgb(_Color[3]);
textBox5.BackColor = Color.FromArgb(_Color[4]);
textBox6.BackColor = Color.FromArgb(_Color[5]);
textBox7.BackColor = Color.FromArgb(_Color[6]);
textBox8.BackColor = Color.FromArgb(_Color[7]);
textBox9.BackColor = Color.FromArgb(_Color[8]);
textBox10.BackColor = Color.FromArgb(_Color[9]);
textBox11.BackColor = Color.FromArgb(_Color[10]);
textBox12.BackColor = Color.FromArgb(_Color[11]);
textBox13.BackColor = Color.FromArgb(_Color[12]);
textBox14.BackColor = Color.FromArgb(_Color[13]);
textBox15.BackColor = Color.FromArgb(_Color[14]);
textBox16.BackColor = Color.FromArgb(_Color[15]);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -