private void button2_Click(object sender, EventArgs e) { cmdAdminpage admin = new cmdAdminpage(); this.Hide(); admin.Show(); }
private void btnback_Click(object sender, EventArgs e) { cmdAdminpage d1 = new cmdAdminpage(); this.Hide(); d1.Show(); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { cmdAdminpage admin = new cmdAdminpage(); this.Hide(); admin.Show(); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { localhost.Service1 server = new localhost.Service1(); server.Identify_admin(txtUsername.Text, txtpassword.Text); txtUsername.Text = " "; txtpassword.Text = " "; cmdAdminpage admin = new cmdAdminpage(); this.Hide(); admin.Show(); }
private void button2_Click(object sender, EventArgs e) { bool a; bool y; localhost.Service1 server = new localhost.Service1(); server.loginAsAdmin(out a, out y); if (a == true) { cmdAdminpage adm = new cmdAdminpage(); this.Hide(); adm.Show(); } else { MessageBox.Show("Your order is confirmed"); } }