📄 historydatabase.cs
字号:
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(80, 32);
this.btnDelete.TabIndex = 42;
this.btnDelete.Text = "删除(&D)";
this.btnDelete.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
this.btnDelete.MouseEnter += new System.EventHandler(this.btnModify_MouseEnter);
this.btnDelete.MouseLeave += new System.EventHandler(this.btnModify_MouseLeave);
//
// btnAdd
//
this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAdd.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.btnAdd.ForeColor = System.Drawing.SystemColors.Highlight;
this.btnAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnAdd.ImageIndex = 7;
this.btnAdd.ImageList = this.image;
this.btnAdd.Location = new System.Drawing.Point(400, 40);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(88, 32);
this.btnAdd.TabIndex = 40;
this.btnAdd.Text = "添加(&A)";
this.btnAdd.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
this.btnAdd.MouseEnter += new System.EventHandler(this.btnModify_MouseEnter);
this.btnAdd.MouseLeave += new System.EventHandler(this.btnModify_MouseLeave);
//
// dataGrid
//
this.dataGrid.AlternatingBackColor = System.Drawing.Color.GhostWhite;
this.dataGrid.BackColor = System.Drawing.Color.GhostWhite;
this.dataGrid.BackgroundColor = System.Drawing.Color.Lavender;
this.dataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGrid.CaptionBackColor = System.Drawing.Color.RoyalBlue;
this.dataGrid.CaptionForeColor = System.Drawing.Color.White;
this.dataGrid.CaptionVisible = false;
this.dataGrid.DataMember = "";
this.dataGrid.FlatMode = true;
this.dataGrid.Font = new System.Drawing.Font("Tahoma", 8F);
this.dataGrid.ForeColor = System.Drawing.Color.MidnightBlue;
this.dataGrid.GridLineColor = System.Drawing.Color.RoyalBlue;
this.dataGrid.HeaderBackColor = System.Drawing.Color.MidnightBlue;
this.dataGrid.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
this.dataGrid.HeaderForeColor = System.Drawing.Color.Lavender;
this.dataGrid.LinkColor = System.Drawing.Color.Teal;
this.dataGrid.Location = new System.Drawing.Point(0, 72);
this.dataGrid.Name = "dataGrid";
this.dataGrid.ParentRowsBackColor = System.Drawing.Color.Lavender;
this.dataGrid.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
this.dataGrid.ReadOnly = true;
this.dataGrid.SelectionBackColor = System.Drawing.Color.Teal;
this.dataGrid.SelectionForeColor = System.Drawing.Color.PaleGreen;
this.dataGrid.Size = new System.Drawing.Size(840, 256);
this.dataGrid.TabIndex = 39;
//
// Status
//
this.Status.Location = new System.Drawing.Point(0, 334);
this.Status.Name = "Status";
this.Status.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.historyStauts,
this.historyUser,
this.historyTime,
this.historyInformation,
this.historyOther});
this.Status.ShowPanels = true;
this.Status.Size = new System.Drawing.Size(834, 32);
this.Status.TabIndex = 49;
//
// historyStauts
//
this.historyStauts.Icon = ((System.Drawing.Icon)(resources.GetObject("historyStauts.Icon")));
this.historyStauts.Text = "状态:";
this.historyStauts.Width = 150;
//
// historyUser
//
this.historyUser.Icon = ((System.Drawing.Icon)(resources.GetObject("historyUser.Icon")));
this.historyUser.Text = "用户:";
this.historyUser.Width = 150;
//
// historyTime
//
this.historyTime.Icon = ((System.Drawing.Icon)(resources.GetObject("historyTime.Icon")));
this.historyTime.Text = "时间:";
this.historyTime.Width = 150;
//
// historyInformation
//
this.historyInformation.Icon = ((System.Drawing.Icon)(resources.GetObject("historyInformation.Icon")));
this.historyInformation.Text = "日期:";
this.historyInformation.Width = 150;
//
// historyOther
//
this.historyOther.Icon = ((System.Drawing.Icon)(resources.GetObject("historyOther.Icon")));
this.historyOther.Text = "其他:";
this.historyOther.Width = 180;
//
// CurrentTime
//
this.CurrentTime.Enabled = true;
this.CurrentTime.Interval = 1000;
this.CurrentTime.Tick += new System.EventHandler(this.CurrentTime_Tick);
//
// image
//
this.image.ImageSize = new System.Drawing.Size(16, 16);
this.image.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("image.ImageStream")));
this.image.TransparentColor = System.Drawing.Color.Transparent;
//
// HistoryDatabase
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(834, 366);
this.Controls.Add(this.Status);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.btnEnd);
this.Controls.Add(this.btnFirst);
this.Controls.Add(this.btnNext);
this.Controls.Add(this.btnLast);
this.Controls.Add(this.btnModify);
this.Controls.Add(this.btnSave);
this.Controls.Add(this.btnDelete);
this.Controls.Add(this.btnAdd);
this.Controls.Add(this.label1);
this.Controls.Add(this.dataGrid);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "HistoryDatabase";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "histroyDataBase";
this.Load += new System.EventHandler(this.HistoryDatabase_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGrid)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.historyStauts)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.historyUser)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.historyTime)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.historyInformation)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.historyOther)).EndInit();
this.ResumeLayout(false);
} #endregion
#region 初始化事件...
private void HistoryDatabase_Load(object sender, System.EventArgs e)
{
try
{
#region 初始化状态栏...
this.historyOther.Text="状态:无";
this.historyUser.Text="用户:"+landFrame.strName;
this.historyStauts.Text="最大号:100";
#endregion
}
catch(Exception ele)
{
ele.ToString();
}
} #endregion
#region 上一记录...
private void button10_Click(object sender, System.EventArgs e)
{
} #endregion
#region 下一记录...
private void button9_Click(object sender, System.EventArgs e)
{
} #endregion
#region 首记录...
private void button8_Click(object sender, System.EventArgs e)
{
} #endregion
#region 尾记录...
private void btnEnd_Click(object sender, System.EventArgs e)
{
} #endregion
#region 添加
private void btnAdd_Click(object sender, System.EventArgs e)
{
} #endregion
#region 修改..
private void btnModify_Click(object sender, System.EventArgs e)
{
} #endregion
#region 删除...
private void btnDelete_Click(object sender, System.EventArgs e)
{
} #endregion
#region 保存...
private void btnSave_Click(object sender, System.EventArgs e)
{
} #endregion
#region 退出...
private void btnExit_Click(object sender, System.EventArgs e)
{
} #endregion
#region 时间处理事件 ...
private void CurrentTime_Tick(object sender, System.EventArgs e)
{
this.historyTime.Text="时间:"+System.DateTime.Now.ToLongTimeString();
this.historyInformation.Text="日期:"+System.DateTime.Now.ToLongDateString();
} #endregion
#region 光标移动变化....
private void btnModify_MouseLeave(object sender, System.EventArgs e)
{
Button button=(Button)sender;
button.FlatStyle=FlatStyle.Flat;
button.Font=new Font("宋体",9,FontStyle.Bold);
}
private void btnModify_MouseEnter(object sender, System.EventArgs e)
{
Button button=(Button)sender;
button.FlatStyle=FlatStyle.Standard;
button.Font=new Font("宋体",9,FontStyle.Italic);
} #endregion }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -