private void btnLogIn_Click(object sender, EventArgs e) { LogIns liclass = new LogIns(); if (liclass.LogIn(txtUser.Text, txtPass.Text) != 0) { this.Hide(); MDI_Main mm = new MDI_Main(); mm.Show(); } }
private void button1_Click(object sender, EventArgs e) { SchoolInfo si = new SchoolInfo(); si.SaveSchoolInfo(txtSIName.Text, txtSIEstablish.Text, txtSILocation.Text); this.Hide(); MDI_Main mm = new MDI_Main(); mm.Show(); }