现在的位置: 首页 > 综合 > 正文

同心源超级备忘录 源代码

2014年02月08日 ⁄ 综合 ⁄ 共 8133字 ⁄ 字号 评论关闭

这里是我写的同心源超级备忘录的源代码,贴出来交流一下

其中还有很多不完善的地方,不过保证能够用,呵呵.......

备忘录的一般写法,通用思想是一样的.

这个是主窗口的代码:

 

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;

namespace supermemo
{
    
/// <summary>
    
/// Form1 的摘要说明。
    
/// </summary>

    public class Form1 : System.Windows.Forms.Form
    
{
        
private System.Windows.Forms.GroupBox groupBox1;
        
private System.Windows.Forms.GroupBox groupBox2;
        
private System.Windows.Forms.Button button1;
        
private System.Windows.Forms.Button button2;
        
private System.Windows.Forms.Button button3;
        
private System.Windows.Forms.Button button5;
        
private System.Windows.Forms.Button button6;
        
public System.Windows.Forms.DataGrid dataGrid1;
        
private System.Windows.Forms.TextBox txtdetails;
        
private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
        
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn1;
        
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn2;
        
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn3;        
        
private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn4;
        
private DialogResult dialogR;
        
public int flag;
        
private System.Windows.Forms.NotifyIcon notifyIcon1;
        
private System.Windows.Forms.ContextMenu contextMenu1;
        
private System.Windows.Forms.MenuItem menuItem1;
        
private System.Windows.Forms.MenuItem menuItem2;
        
public System.Windows.Forms.Timer timer1;
        
private System.Windows.Forms.MenuItem menuItem3;
        
private System.Data.OleDb.OleDbConnection conn;
        
private System.Data.OleDb.OleDbConnection conn2;
        
private System.ComponentModel.IContainer components;
        

        
public Form1()
        
{
            
//
            
// Windows 窗体设计器支持所必需的        
            
//        
            InitializeComponent();
            
//
            
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            
//
        }


        
/// <summary>
        
/// 清理所有正在使用的资源。
        
/// </summary>

        protected override void Dispose( bool disposing )
        
{
            
if( disposing )
            
{
                
if (components != null
                
{
                    components.Dispose();
                }

            }

            
base.Dispose( disposing );
        }


        
Windows 窗体设计器生成的代码

抱歉!评论已关闭.