Ejemplo n.º 1
0
 private void DoctorPage_Load(object sender, EventArgs e)
 {
     try
     {
         gf.GetActiveUser(lblActiveUser);
         gf.GetUserInfo(lblDocFname, lblDocFname, lblDocAddress, lblDocDOB, lblDocPhone, lblDocEmail, lblDocTitle, lblDocDepartement);
         GetDocPatient();
     }
     catch (Exception ex)
     {
         lblErrorMess.Text = ex.Message;
     }
 }
        private void AdminPage_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'hospitalManagementDBDataSet.UserProfile' table. You can move, or remove it, as needed.
            this.userProfileTableAdapter.Fill(this.hospitalManagementDBDataSet.UserProfile);

            try
            {
                gf.GetActiveUser(lblActiveUser);
                gf.GetUserInfo(lblAdminFname, lblAdminFname, lblAdminAddress, lblAdminDOB, lblAdminPhone, lblAdminEmail, lblAdminTitle, lblAdminDepartement);
            }
            catch (Exception ex)
            {
                lblExcep.Text = ex.Message;
            }
        }
Ejemplo n.º 3
0
 private void Home_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the 'hospitalManagementDBDataSetSearch.UserProfile' table. You can move, or remove it, as needed.
     this.userProfileTableAdapter.Fill(this.hospitalManagementDBDataSetSearch.UserProfile);
     // TODO: This line of code loads data into the 'hospitalManagementDBDataSetSearch.UserProfile' table. You can move, or remove it, as needed.
     this.userProfileTableAdapter.Fill(this.hospitalManagementDBDataSetSearch.UserProfile);
     //lblActiveUser.Text = Login.GlobalUname.GlobalVar;
     HomeTabPage1.Focus();
     try
     {
         gf.GetActiveUser(lblActiveUser);
         gf.GetUserInfo(lblAssistFname, lblAssistLname, lblAssistAddress, lblAssistDOB, lblAssistPhone, lblAssistEmail, lblAssistTitle, lblAssistDepartement);
     }
     catch (Exception ex)
     {
         lblErrorMess.Text = ex.Message;
     }
 }