• 大小: 14.18M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-31
  • 语言: 其他
  • 标签: 其他  

资源简介

TM.rar

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//添加的命名空间
using System.Data.OleDb;
using VWMS.CommonClass;

namespace VWMS
{
    public partial class frmLogin : Form
    {
        public frmLogin()
        {
            InitializeComponent();
        }

        DataCon datacon = new DataCon();
        DataOperate dataoperate = new DataOperate();

        private void btnLogin_Click(object sender EventArgs e)
        {
            if (txtName.Text == ““)
            {
                errorProName.SetError(txtName “用户名不能为空!“);
            }
            else
            {
                errorProName.Clear();
                string strSql = “select * from tb_admin where name=‘“ + txtName.Text + “‘ and pwd=‘“ + txtPwd.Text + “‘“;
                DataSet ds = dataoperate.getDs(strSql “tb_admin“);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    this.Hide();
                    frmMain frmmain = new frmMain();
                    frmmain.Show();
                }
                else
                {
                    MessageBox.Show(“用户名或密码错误!“ “警告“ MessageBoxButtons.OK MessageBoxIcon.Warning);
                }
            }
        }

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

        private void txtName_KeyPress(object sender KeyPressEventArgs e)
        {
            if (e.KeyChar == 13)
            {
                txtPwd.Focus();
                e.Handled = true;
            }
        }

        private void txtPwd_KeyPress(object sender KeyPressEventArgs e)
        {
            if (e.KeyChar == 13)
            {
                btnLogin.Focus();
                e.Handled = true;
            }
        }
    }
}

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

     文件     637952  2007-12-24 09:43  TM\01\readme.doc

     文件      53248  2007-12-01 16:30  TM\01\VWMS\VWMS\bin\Debug\AxInterop.MediaPlayer.dll

     文件      61440  2010-08-11 08:58  TM\01\VWMS\VWMS\bin\Debug\AxInterop.WMPLib.dll

     文件      86016  2007-12-10 09:05  TM\01\VWMS\VWMS\bin\Debug\Interop.MediaPlayer.dll

     文件     290816  2011-08-18 22:37  TM\01\VWMS\VWMS\bin\Debug\Interop.WMPLib.dll

     文件    3947520  2011-08-18 22:37  TM\01\VWMS\VWMS\bin\Debug\VWMS.exe

     文件     116224  2011-08-18 22:37  TM\01\VWMS\VWMS\bin\Debug\VWMS.pdb

     文件      14328  2010-08-11 09:01  TM\01\VWMS\VWMS\bin\Debug\VWMS.vshost.exe

     文件        490  2009-06-11 05:14  TM\01\VWMS\VWMS\bin\Debug\VWMS.vshost.exe.manifest

     文件      20480  2007-12-02 16:06  TM\01\VWMS\VWMS\bin\Debug\系统注册机.exe

     文件        704  2007-11-21 09:19  TM\01\VWMS\VWMS\CommonClass\DataCon.cs

     文件        909  2007-11-21 09:18  TM\01\VWMS\VWMS\CommonClass\DataOperate.cs

     文件       5505  2007-12-10 10:35  TM\01\VWMS\VWMS\CommonClass\PelcoD.cs

     文件       3536  2007-12-04 17:00  TM\01\VWMS\VWMS\CommonClass\SoftReg.cs

     文件       8483  2007-12-04 10:27  TM\01\VWMS\VWMS\CommonClass\VideoOperate.cs

     文件     196608  2011-08-18 22:41  TM\01\VWMS\VWMS\Database\db_VWMS.mdb

     文件       1976  2007-12-10 19:24  TM\01\VWMS\VWMS\frmLogin.cs

     文件       4896  2007-12-10 19:24  TM\01\VWMS\VWMS\frmLogin.Designer.cs

     文件     279244  2007-12-10 19:24  TM\01\VWMS\VWMS\frmLogin.resx

     文件      16417  2007-12-24 09:31  TM\01\VWMS\VWMS\frmMain.cs

     文件      23066  2007-12-24 09:31  TM\01\VWMS\VWMS\frmMain.Designer.cs

     文件    5012835  2007-12-24 09:31  TM\01\VWMS\VWMS\frmMain.resx

     文件       1035  2007-12-24 09:33  TM\01\VWMS\VWMS\frmPlay.cs

     文件       4523  2007-12-24 09:33  TM\01\VWMS\VWMS\frmPlay.Designer.cs

     文件      12463  2007-12-14 14:22  TM\01\VWMS\VWMS\frmPlay.resx

     文件       1568  2007-12-10 18:16  TM\01\VWMS\VWMS\frmRegister.cs

     文件       4272  2007-12-10 18:16  TM\01\VWMS\VWMS\frmRegister.Designer.cs

     文件     180015  2007-12-10 18:16  TM\01\VWMS\VWMS\frmRegister.resx

     文件       3218  2007-12-24 09:24  TM\01\VWMS\VWMS\frmSetMonitor.cs

     文件       6394  2007-12-10 18:42  TM\01\VWMS\VWMS\frmSetMonitor.Designer.cs

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

评论

共有 条评论