Esempio n. 1
0
        private void btnInformation_Click(object sender, EventArgs e)
        {
            lnlLogOut.Hide();
            employee    em = context.employees.FirstOrDefault(ep => ep.empId == emp.empId);
            ProfileForm sf = new ProfileForm(em);

            sf.TopLevel        = false;
            sf.AutoScroll      = true;
            sf.FormBorderStyle = FormBorderStyle.None;
            sf.Dock            = DockStyle.Fill;
            this.pnlEmpLoad.Controls.Clear();
            this.pnlEmpLoad.Controls.Add(sf);
            sf.Show();
        }
Esempio n. 2
0
        private void btnInformation_Click(object sender, EventArgs e)
        {
            lnlLogOut.Hide();
            pnlemployess.Hide();
            pnlPayslip.Hide();
            pnlProfile.Show();
            pnlProfile.Location = new System.Drawing.Point(288, 27);
            ProfileForm sf = new ProfileForm(this.emp);

            sf.TopLevel        = false;
            sf.AutoScroll      = true;
            sf.FormBorderStyle = FormBorderStyle.None;
            sf.Dock            = DockStyle.Fill;
            this.pnladminload.Controls.Clear();
            this.pnladminload.Controls.Add(sf);
            sf.Show();
        }