• 大小: 876KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-22
  • 语言: C#
  • 标签: C#  家庭理财  WinForm  

资源简介

C#开发的家庭理财小软件,适合初学者学习WinForm程序开发

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using PAM.Class;
using System.IO;
using System.Data.SqlClient;

namespace PAM
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        /// 
        /// 验证登录
        /// 

        private void loginBtn_Click(object sender EventArgs e)
        {
            string name = nameTb.Text;
            string password = pwdTb.Text;
            if (name ==““)
            {
                MessageBox.Show(“用户名不能为空!“ “家庭账本V1.0“ MessageBoxButtons.OK MessageBoxIcon.Error);
                return;
            }
            if (password==““)
            {
                MessageBox.Show(“密码不能为空!“ “家庭账本V1.0“ MessageBoxButtons.OK MessageBoxIcon.Error);
                return;
            }

            //查询数据库,验证用户名密码
            string user_id = new Business().Login(name password);
            if ( user_id != null)
            {
                Main main_frm = new Main();
                main_frm.CloseForm += new CloseFormEventHandler(this.Close);
                main_frm.current_userid = user_id;
                main_frm.Show();
                this.Hide();
            }
            else {
                MessageBox.Show(“用户名或者密码错误!“ “家庭账本V1.0“ MessageBoxButtons.OK MessageBoxIcon.Error);
                return;
            }
                
        }

        /// 
        /// 退出程序
        /// 

        /// 
        /// 
        private void quitBtn_Click(object sender EventArgs e)
        {
            Application.Exit();
        }

    
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     81408  2018-05-25 19:56  PAM\PAM\.vs\PAM\v15\.suo

     文件     606208  2018-05-25 19:55  PAM\PAM\.vs\PAM\v15\sqlite3\storage.ide

     文件        977  2008-01-29 15:11  PAM\PAM\Backup\Bankroll.cs

     文件       4179  2008-01-29 15:11  PAM\PAM\Backup\Bankroll.Designer.cs

     文件       5814  2008-01-29 15:11  PAM\PAM\Backup\Bankroll.resx

     文件      14564  2008-01-29 12:19  PAM\PAM\Backup\Class\Business.cs

     文件        657  2008-01-29 11:46  PAM\PAM\Backup\Class\Common.cs

     文件       7794  2008-01-29 16:16  PAM\PAM\Backup\Class\MyDBHelper.cs

     文件       3913  2008-01-29 13:49  PAM\PAM\Backup\Class\MyRijndael.cs

     文件       4272  2008-01-29 14:04  PAM\PAM\Backup\Class\MySecurity.cs

     文件       2292  2008-01-29 11:54  PAM\PAM\Backup\Class\MyValidation.cs

     文件      10134  2001-07-14 03:47  PAM\PAM\Backup\icon.ico

     文件       1513  2008-01-29 14:08  PAM\PAM\Backup\Login.cs

     文件       4962  2008-01-24 14:48  PAM\PAM\Backup\Login.Designer.cs

     文件       5814  2008-01-24 14:48  PAM\PAM\Backup\Login.resx

     文件      15290  2008-01-29 15:10  PAM\PAM\Backup\Main.cs

     文件      50924  2008-01-29 15:10  PAM\PAM\Backup\Main.Designer.cs

     文件      22781  2008-01-29 15:10  PAM\PAM\Backup\Main.resx

     文件       1020  2008-01-29 15:17  PAM\PAM\Backup\NewDIRecord.cs

     文件       7527  2008-01-29 15:17  PAM\PAM\Backup\NewDIRecord.Designer.cs

     文件       5814  2008-01-29 15:17  PAM\PAM\Backup\NewDIRecord.resx

     文件       5788  2008-01-29 12:13  PAM\PAM\Backup\PAM.csproj

     文件        894  2008-01-22 14:02  PAM\PAM\Backup\PAM.sln

     文件        462  2008-01-28 22:47  PAM\PAM\Backup\Program.cs

     文件       1190  2008-01-22 14:02  PAM\PAM\Backup\Properties\AssemblyInfo.cs

     文件       3336  2008-01-23 21:55  PAM\PAM\Backup\Properties\Resources.Designer.cs

     文件      52721  2008-01-23 21:55  PAM\PAM\Backup\Properties\Resources.resx

     文件       1088  2008-01-22 14:02  PAM\PAM\Backup\Properties\Settings.Designer.cs

     文件        249  2008-01-22 14:02  PAM\PAM\Backup\Properties\Settings.settings

     文件       1055  2008-01-29 12:14  PAM\PAM\Backup\PwdChange.cs

............此处省略93个文件信息

评论

共有 条评论