using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace UASproject { public partial class frm_singin : Form { public frm_singin() { InitializeComponent(); } public void showlogin(string type) { switch (type) { case "student": frmLoginUsers objfrmLoginUsers = new frmLoginUsers(); objfrmLoginUsers.TopLevel = false; pnl_login.Controls.Add(objfrmLoginUsers); objfrmLoginUsers.Show(); break; case "maneg": frmLoginUsers objfrmLoginUsers2 = new frmLoginUsers(); objfrmLoginUsers2.TopLevel = false; pnl_login.Controls.Add(objfrmLoginUsers2); objfrmLoginUsers2.Show(); break; } } private void btn_egit_Click(object sender, EventArgs e) { Application.Exit(); } private void navigationPane1_Load(object sender, EventArgs e) { } } private void btn_signin_setudent_Click(object sender, EventArgs e) { frm_singin open = new frm_singin(); open.showlogin("student"); } private void btn_signin_maneg_Click(object sender, EventArgs e) { frm_singin open2 = new frm_singin(); open2.showlogin("maneg"); } private void pnl_login_Paint(object sender, PaintEventArgs e) { } } }