예제 #1
0
        private void btnOwnPayslips_Click(object sender, EventArgs e)
        {
            lnlLogOut.Hide();
            ProfilePaySlipForm sf = new ProfilePaySlipForm(this.emp);

            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();
        }
예제 #2
0
        private void btnOwnPayslips_Click(object sender, EventArgs e)
        {
            lnlLogOut.Hide();
            pnlemployess.Hide();
            pnlPayslip.Hide();
            pnlProfile.Show();
            pnlProfile.Location = new System.Drawing.Point(288, 27);
            ProfilePaySlipForm sf = new ProfilePaySlipForm(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();
        }