}//end edit button

        private void editInfo()
        {
            bool error = null_check();

            if (!error)
            {
                switch (viewtabcontrol.SelectedIndex)
                {
                case 0:
                    Collection frm = new Collection("edit", collectionLB_admin.SelectedItem.ToString(), Admin_ID, ref collectionLB_admin);
                    frm.Show();
                    break;

                case 1:
                    Event frm1 = new Event("edit", eventLB_admin.SelectedItem.ToString(), ref eventLB_admin, Admin_ID);
                    frm1.Show();
                    break;

                case 2:
                    Souvenir frm2 = new Souvenir("edit", souvenirLB_admin.SelectedItem.ToString(), ref souvenirLB_admin, Admin_ID);
                    frm2.Show();
                    break;
                }
            }
        }
        //end null_check()

        //view details button is clicked(complete)
        private void viewdetailsbtn_Click(object sender, EventArgs e)
        {
            bool error = null_check();

            if (!error)
            {
                switch (viewtabcontrol.SelectedIndex)
                {
                case 0:
                    Collection frm = new Collection("view", collectionLB_admin.SelectedItem.ToString(), Admin_ID, ref collectionLB_admin);
                    frm.Show();
                    break;

                case 1:
                    Event frm1 = new Event("view", eventLB_admin.SelectedItem.ToString(), ref eventLB_admin, Admin_ID);
                    frm1.Show();
                    break;

                case 2:
                    Souvenir frm2 = new Souvenir("view", souvenirLB_admin.SelectedItem.ToString(), ref souvenirLB_admin, Admin_ID);
                    frm2.Show();
                    break;
                }
            }
        }//end view details button
        // END <

        private void viewInfoDetail()
        {
            bool error = null_check();

            if (!error)
            {
                switch (viewtabcontrol.SelectedIndex)
                {
                case 0:
                    Collection frm = new Collection("view", collectionlist.SelectedItem.ToString(), "", ref collectionlist);
                    frm.Show();
                    break;

                case 1:
                    Event frm1 = new Event("view", eventlist.SelectedItem.ToString(), ref eventlist, "");
                    frm1.Show();
                    break;

                case 2:
                    Souvenir frm2 = new Souvenir("view", souvenirlist.SelectedItem.ToString(), ref souvenirlist, "");
                    frm2.Show();
                    break;
                }
            }
        }
        }//end insert button

        private void insertInfo()
        {
            switch (viewtabcontrol.SelectedIndex)
            {
            case 0:
                Collection frm = new Collection("insert", " ", Admin_ID, ref collectionLB_admin);
                frm.Show();
                break;

            case 1:
                Event frm1 = new Event("insert", " ", ref eventLB_admin, Admin_ID);
                frm1.Show();
                break;

            case 2:
                Souvenir frm2 = new Souvenir("insert", " ", ref souvenirLB_admin, Admin_ID);
                frm2.Show();
                break;
            }
        }