private void Log_Button_Click(object sender, EventArgs e) { UserId = ""; PassWd = ""; UserId = this.UserId_TextBox.Text; PassWd = this.PassWd_TextBox.Text; sql = "SELECT * FROM USER_TABLE WHERE USER="******" and PASSWORD="******"账号密码错误,请重试","登陆失败",MessageBoxButtons.OK,MessageBoxIcon.Warning); //} if (true) { this.Hide(); Main_Win main_Win = new Main_Win(); main_Win.Show(); } }
private void Win_Add_Order_FormClosing(object sender, FormClosingEventArgs e) { MyFatherWin.Show(); }