public void GofrmProfile(frmDetails f, string userNameFromLogin, string userCategory) { f.Hide(); frmProfile frm = new frmProfile(userNameFromLogin, userCategory); frm.ShowDialog(); f.Close(); }
public void GofrmNewMember(frmDetails f) { f.Hide(); frmNewMember frm = new frmNewMember(); frm.ShowDialog(); f.Close(); }
//Special Case: Pass in Username and Password public void GofrmNewMember2(frmDetails f, string userName, string password) { f.Hide(); frmNewMember2 frm = new frmNewMember2(userName, password); frm.ShowDialog(); f.Close(); }
public void GofrmManageMember(frmDetails f, string userNameFromLogin, string userCategory) { f.Hide(); frmManageMember frm = new frmManageMember(userNameFromLogin, userCategory); frm.ShowDialog(); f.Close(); }
//Form Login is SPECIAL CASE: No user details public void GofrmLogin(frmDetails f) { f.Hide(); frmLogin frm = new frmLogin(); frm.ShowDialog(); f.Close(); }
public void GofrmDashboardLibrarian(frmDetails f, string userNameFromLogin, string userCategory) { f.Hide(); frmDashboardLibrarian frm = new frmDashboardLibrarian(userNameFromLogin, userCategory); frm.ShowDialog(); f.Close(); }
public void GofrmBorrowBooks_BookID(frmDetails f, string userNameFromLogin, string userCategory) { f.Hide(); frmBorrowBook_BookID frm = new frmBorrowBook_BookID(userNameFromLogin, userCategory); frm.ShowDialog(); f.Close(); }
public void GofrmSearchBook(frmDetails f, string userNameFromLogin, string userCategory) { f.Hide(); frmSearchBook frm = new frmSearchBook(userNameFromLogin, userCategory); frm.ShowDialog(); f.Close(); }