private void btnalogin_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(tbaloginnm.Text)) { MessageBox.Show("Please enter UserName!"); } else if (String.IsNullOrEmpty(tbaloginpass.Text)) { MessageBox.Show("Please enter Password!"); } else if (adminlogin(tbaloginnm.Text, tbaloginpass.Text)) { username = tbaloginnm.Text; password = tbaloginpass.Text; this.Visible = false; adminf d = new adminf(); d.ShowDialog(); this.Close(); } else { MessageBox.Show("Username or Password incorrect"); } //Database.ClearTable(); }
private void btnpurchaseback_Click(object sender, EventArgs e) { this.Visible = false; adminf a = new adminf(); a.ShowDialog(); this.Close(); }
private void btnrepeatno_Click(object sender, EventArgs e) { this.Visible = false; adminf b = new adminf(); b.ShowDialog(); this.Close(); }
private void btncatback_Click(object sender, EventArgs e) { this.Visible = false; adminf k = new adminf(); k.ShowDialog(); this.Close(); }