Пример #1
0
        private void tsbEmployee_Click(object sender, EventArgs e)
        {
            FrmEmpSearch frmEmpSearch = new FrmEmpSearch()
            {
                Dock = DockStyle.Fill, AutoSize = false, AutoScaleMode = AutoScaleMode.None
            };

            CreateNewPage(tsbEmployee.Text, frmEmpSearch);
        }
Пример #2
0
        private void sbtnEmployee_Click(object sender, EventArgs e)
        {
            FrmEmpSearch frmEmpSearch = new FrmEmpSearch()
            {
                Name = sbtnEmployee.Text,
                Text = sbtnEmployee.Text,
                Dock = DockStyle.Fill
            };

            CreatNewPag(sbtnEmployee.Text, frmEmpSearch);
        }