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)
{
资源文件列表
FormMain.Designer.cs , 39877
FormMain.cs , 34947
FormMain.resx , 72109
Mykey.csproj , 5013
Program.cs , 489
Properties/AssemblyInfo.cs , 1331
Properties/Resources.Designer.cs , 2845
Properties/Resources.resx , 6097
Properties/Settings.Designer.cs , 1092
Properties/Settings.settings , 249
SQLiteHelper.cs , 2782
bin/Debug/MyKey.exe , 151552
bin/Debug/MyKey.pdb , 67072
bin/Debug/System.Data.SQLite.dll , 904704
bin/Debug/System.Data.SQLite.xml , 184765
bin/Debug/mykey , 16384
key.ico , 67646
obj/Debug/DesignTimeResolveAssemblyReferences.cache , 6699
obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache , 7188
obj/Debug/MyKey.FormMain.resources , 44882
obj/Debug/MyKey.Properties.Resources.resources , 180
obj/Debug/MyKey.csproj.FileListAbsolute.txt , 2889
obj/Debug/MyKey.exe , 151552
obj/Debug/MyKey.pdb , 67072
obj/Debug/Mykey.csproj.CopyComplete , 0
obj/Debug/Mykey.csproj.GenerateResource.cache , 850
obj/Debug/Mykey.csproj.ResolveComReference.cache , 1030
obj/Debug/TempPE/Properties.Resources.Designer.cs.dll , 3584
