private void Btn_Create_Click(object sender, EventArgs e) { if (status is null) { MessageBox.Show("Please check availability..."); } else { Class_NewAccount newacc = new Class_NewAccount(); int CustomerNewAccount = newacc.CustomerNewAccount(tb_fullname.Text, Rbtn_Male.Checked, tb_phone.Text, tb_address.Text, Tb_Username.Text, tb_password.Text, Tb_Email.Text); if (CustomerNewAccount != 0) { MessageBox.Show("Your account was Created successfully!"); Form_Login forwardtologin = new Form_Login(); this.Close(); forwardtologin.Show(); } } }
private void Btn_Customer_Click(object sender, EventArgs e) { Form_Login newlogin = new Form_Login(); newlogin.Show(); }
private void Btn_Employee_Click(object sender, EventArgs e) { Form_Login newlogin = new Form_Login(); newlogin.Show(); }