private void LoginButton_Click_1(object sender, EventArgs e) { if (db.GetPassword(textBox1.Text, type) == textBox2.Text) { if (radioButton1.Checked) { MenuCreate man = new MenuCreate(this); this.Hide(); man.ShowDialog(); } if (radioButton2.Checked) { WaiterSystem waiter = new WaiterSystem(this); this.Hide(); waiter.ShowDialog(); } if (radioButton3.Checked) { Uid = textBox1.Text; CustomerSystem customer = new CustomerSystem(this, Uid); this.Hide(); customer.ShowDialog(); this.Close(); } } else { MessageBox.Show("用户名或密码错误"); } }
public InsertFoodNum(WaiterSystem wsys) { InitializeComponent(); waitersys = wsys; textBox1.Text = "1"; }
public InsertFoodNum(WaiterSystem wsys) { InitializeComponent(); waitersys = wsys; }