示例#1
0
        private void Manager_Load(object sender, EventArgs e)
        {
            //tabControl_SelectedIndexChanged(sender, e);
            //this.reportViewer1.RefreshReport();

            UserProfil userControl = new UserProfil();

            userControl.Visible = true;

            this.Controls.Add(userControl);
            this.ResumeLayout();
        }
 private void TeamLeader_Load(object sender, EventArgs e)
 {
     if (GlobalProp.CurrentUser != null)
     {
         UserProfil userControl = new UserProfil();
         userControl.Visible = true;
         userControl.Controls["name_value"].Text       = GlobalProp.CurrentUser.UserName;
         userControl.Controls["department_value"].Text = GlobalProp.CurrentUser.DepartmentUser.Department;
         userControl.Location = new Point(Width, 30);
         this.Controls.Add(userControl);
         this.ResumeLayout();
     }
 }
 private void Manager_Load(object sender, EventArgs e)
 {
     //tabControl_SelectedIndexChanged(sender, e);
     //this.reportViewer1.RefreshReport();
     if (GlobalProp.CurrentUser != null)
     {
         UserProfil userControl = new UserProfil();
         userControl.Visible = true;
         userControl.Controls["name_value"].Text       = GlobalProp.CurrentUser.UserName;
         userControl.Controls["department_value"].Text = GlobalProp.CurrentUser.DepartmentUser.Department;
         userControl.Location = new Point(Width, 30);
         this.Controls.Add(userControl);
         this.ResumeLayout();
     }
 }