Beispiel #1
0
        private void setupTabs_Staff(TabControl.TabPageCollection objTabs)
        {
            staffActivityLog objStaff = new staffActivityLog(_User);


            TabPage objTab = addControl2Tab("Consumer", objStaff);

            this.tabMain.Width  = objTab.Width + 10;
            this.tabMain.Height = objTab.Height + 20;
            this.tabMain.TabPages.Add(objTab);
            this.Height = tabMain.Height + 30;
            this.Width  = tabMain.Width + 5;
        }
Beispiel #2
0
        private void LoadStaffList(string strUser, string strCancel)
        {
            lblStatus.Text = "Showing Consumer List for " + strUser;
            Staff          = strUser;
            staffActivityLog objStaff = new staffActivityLog(strUser);

            objStaff.EnableButton   += new Enable(EnableButton);
            objStaff.DisableButton  += new Disable(DisableButton);
            objStaff.PassConsumerID += new PassConsumer(passConsumer);
            objStaff.EditReviewID   += new EditReview(editReview);
            objStaff.PassReviewID   += new PassReview(setReviewID);
            objStaff.PassMonthYr    += new PassMonthYear(setMonthYear);

            LoadControl(objStaff, strCancel);
            objStaff.LoadControl();
        }