个人理财系统.pdfVIP

  • 2
  • 0
  • 约7.76万字
  • 约 23页
  • 2020-09-08 发布于江苏
  • 举报
private void btlogin_Click( object sender, password = dataGridView1.Rows[0].Cells[1]. EventArgs e) Value.ToString().Trim(); { string username = null ; if (tbusername.Text.Equals(username) string password = null ; tbmima.Text.Equals(password)) if (tbusername.Text == ) { Form2 f2 = new Form2(); { MessageBox.Show( 你没有输入用户名! , 错 f2.Visible = true ; 误提示 ); return ; this .Visible = false ; } } if (tbmima.Text == ) else { MessageBox.Show( 你没有输入密码! , 错误 { MessageBox.Show( 你输入的用户名或密码错误 提示 ); , 错误提示 ); return ; tbusername.Clear(); } tbmima.Clear(); DataSet dst = new DataSet (); } string connstr = Data Source=(local);Initial con.Close(); Catalog=Message;Integrated Security=True ; } SqlConnection con = new private void btcancel_Click( object sender, SqlConnection (connstr); EventArgs e) con.Open(); { if ( MessageBox.Show( 你是否真的想退出系统? string str = select * from 登录 ; , 提示 , MessageBoxButtons .YesNo) != SqlDataAdapter sda = new SqlDataAdapter (str, DialogResult .No)

文档评论(0)

1亿VIP精品文档

相关文档