public Form GetForm(string frmName) { Form ret = null; switch (frmName) { case "RSDepart": // ShowRSDepart(); ret = new frmRSDepart(); break; case "RSEmp": ret = new frmRSEmp(); break; case "RSDimission": ret = new frmRSDimission(); break; case "RSEmpChart": ret = new frmRSEmpChart(); break; } return(ret); }
private void ShowRSDepart() { frmRSDepart frm = new frmRSDepart(); frm.ShowDialog(); }