Exemplo n.º 1
0
        public void GofrmProfile(frmDetails f, string userNameFromLogin, string userCategory)
        {
            f.Hide();
            frmProfile frm = new frmProfile(userNameFromLogin, userCategory);

            frm.ShowDialog();
            f.Close();
        }
Exemplo n.º 2
0
        public void GofrmNewMember(frmDetails f)
        {
            f.Hide();
            frmNewMember frm = new frmNewMember();

            frm.ShowDialog();
            f.Close();
        }
Exemplo n.º 3
0
        //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();
        }
Exemplo n.º 4
0
        public void GofrmManageMember(frmDetails f, string userNameFromLogin, string userCategory)
        {
            f.Hide();
            frmManageMember frm = new frmManageMember(userNameFromLogin, userCategory);

            frm.ShowDialog();
            f.Close();
        }
Exemplo n.º 5
0
        //Form Login is SPECIAL CASE: No user details
        public void GofrmLogin(frmDetails f)
        {
            f.Hide();
            frmLogin frm = new frmLogin();

            frm.ShowDialog();
            f.Close();
        }
Exemplo n.º 6
0
        public void GofrmDashboardLibrarian(frmDetails f, string userNameFromLogin, string userCategory)
        {
            f.Hide();
            frmDashboardLibrarian frm = new frmDashboardLibrarian(userNameFromLogin, userCategory);

            frm.ShowDialog();
            f.Close();
        }
Exemplo n.º 7
0
        public void GofrmBorrowBooks_BookID(frmDetails f, string userNameFromLogin, string userCategory)
        {
            f.Hide();
            frmBorrowBook_BookID frm = new frmBorrowBook_BookID(userNameFromLogin, userCategory);

            frm.ShowDialog();
            f.Close();
        }
Exemplo n.º 8
0
        public void GofrmSearchBook(frmDetails f, string userNameFromLogin, string userCategory)
        {
            f.Hide();
            frmSearchBook frm = new frmSearchBook(userNameFromLogin, userCategory);

            frm.ShowDialog();
            f.Close();
        }