private void btn_giris_Click(object sender, EventArgs e) { DB db = new DB(); int state; state= db.userState(txt_username.Text, db.MD5Sifrele(txt_userpass.Text)); switch (state) { case 0: this.Hide(); admin_panel adm = new admin_panel(); adm.Show(); break; case 1: this.Hide(); insan_kaynaklari ink = new insan_kaynaklari(); ink.Show(); break; case 2: this.Hide(); muhasebe mh = new muhasebe(); mh.Show(); break; case 3: this.Hide(); ogrenci_isleri ogr = new ogrenci_isleri(); ogr.Show(); break; default: break; } }
private void demirbas_FormClosed(object sender, FormClosedEventArgs e) { this.Hide(); muhasebe mhs = new muhasebe(); mhs.Show(); }