拿位高手帮我详细解释一下这些C#代码的意思(2)

来源:百度知道 编辑:UC知道 时间:2024/05/06 09:10:14
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.SqlClient;

namespace BasketBallTool
{
public partial class registerForm : Form
{
public registerForm()
{
InitializeComponent();
}

private void registerForm_FormClosed(object sender, FormClosedEventArgs e)
{
Application.Exit();
}

private void button2_Click(object sender, EventArgs e)
{
this.Hide();

loginForm logForm = new loginForm();
logForm.Show();
}

private bool findUser()
{
string userID = textBox1.Text.Trim();

string strConnection = @"Data Sou

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.SqlClient;
//以上为导入命名空间
namespace BasketBallTool
{
public partial class registerForm : Form
{
public registerForm()
{
InitializeComponent();
}

private void registerForm_FormClosed(object sender, FormClosedEventArgs e)
{
Application.Exit(); //关闭该窗口时.退出程序
}

private void button2_Click(object sender, EventArgs e) //点击button2的时候
{
this.Hide(); //该窗体隐藏

loginForm logForm = new loginForm();
logForm.Show(); //实例一个loginForm.并弹出窗体
}

private bool findUser() //一个私有方法
{
string userI