C# 求注释

来源:百度知道 编辑:UC知道 时间:2024/06/23 20:17:12
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

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

private void label1_Click(object sender, EventArgs e)
{
zhuce zhuce = new zhuce();
zhuce.Show();
}

private void button1_Click(object sender, EventArgs e)
{
if (validataInputi())
{
if (validataUser())
{
MessageBox.Show("验证成功!");
}
}

}
private bool validataInputi()
{
string name = textBox2.Text.Trim();

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MyQQ
{
public partial class MyQQ : Form
{
public MyQQ()
{
InitializeComponent(); //装载窗口
}

private void label1_Click(object sender, EventArgs e)
{
zhuce zhuce = new zhuce();
zhuce.Show(); //显示窗口,自己看看zhuce这个类的定义
}

private void button1_Click(object sender, EventArgs e)
{
if (validataInputi())
{
if (validataUser())
{
MessageBox.Show("验证成功!");
}
}

}
private bool validataInputi()
{
string name = textBox2.Text.Trim();
string pass = textBox1.Text.Trim();
if (string.IsNullOrEmpty(name))
{
MessageBox.Show("请输入MyQQ号码!", "提示", MessageBoxButtons.OK, MessageBoxI