Mykey for winodws是个简洁高效的轻量级个人重要信息分类管理软件及源码。
使用轻量级SQLite数据库,本地化存储,绿色便携。
主要功能有:
--记录的新增、删除、修改、保存
--记录的分组、树状分组过滤查询
--记录的EXCEL导出、记录的打印
--数据列表显示行号、允许多选等
--显示软件运行时长、当前操作状态
--模糊查询、输入时实时快速查询等
//数据编辑状态 private void ChangeState(int intState) { switch (intState) { case 0: intStateID = 0; lblState.Text = "Browsing"; //浏览中 pnlState.BackColor = Color.Gainsboro; break; case 1: intStateID = 1; lblState.Text = "Adding"; //新增中 pnlState.BackColor = Color.LightGreen; break; case 2: intStateID = 2; lblState.Text = "Editing"; //编辑中 pnlState.BackColor = Color.Thistle; break; case 3: intStateID = 3; lblState.Text = "Deleting"; //删除中 pnlState.BackColor = Color.Orange; break; } ChangeTextEdit(); } // 为Dgv显示行号 private void DgvRowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, dgvKeyList.RowHeadersWidth - 4, e.RowBounds.Height); TextRenderer.DrawText(e.Graphics, (e.RowIndex 1).ToString(), dgvKeyList.RowHeadersDefaultCellStyle.Font, rectangle, dgvKeyList.RowHeadersDefaultCellStyle.ForeColor, TextFormatFlags.VerticalCenter | TextFormatFlags.Right); } private void ToolBtnAbout_Click(object sender, EventArgs e) { MessageBox.Show("Any questions please contact me. \nQQ: 1060897578 \nMail:shoowang@163.com", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } //列表导出Excel private void ToolBtnExcel_Click(object sender, EventArgs e) {
评论