输出字符串格式化/ Linq对数组操作 /一个按钮样式

时间:2024-07-12 19:05:20
          textBox1.Text = dateTimePicker1.Value.ToString("yyyy-MM-dd HH:mm:ss");
            int[] arr = { , , , , , , , , , ,  };
var data = arr.Where(n => n % == && n > ).OrderByDescending(n => n);
foreach (var x in data) {
Console.WriteLine(x);
}
Console.ReadKey();
           //
// button1
//
this.button1.BackColor = System.Drawing.SystemColors.Window;//背景色
this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)()))), ((int)(((byte)()))), ((int)(((byte)()))));//边框颜色
this.button1.FlatAppearance.BorderSize = ;//边框大小
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Blue;//鼠标按下背景
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)()))), ((int)(((byte)()))), ((int)(((byte)()))));//鼠标停留背景色
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;//平面样式
this.button1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)()));//字体
this.button1.Location = new System.Drawing.Point(, );//位置
this.button1.Name = "button1"; //设计名字
this.button1.Size = new System.Drawing.Size(, ); //大小
this.button1.TabIndex = ; //索引 tab键
this.button1.Text = "登录"; //显示名称
this.button1.UseVisualStyleBackColor = false; //使用视觉样式背景色 默认