Пример #1
0
        /// <summary>
        /// it forms the object of the AddEmployee i.e UserControl and bring it to front.
        /// </summary>
        private void llblEmployee_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            AddEmployee n = new AddEmployee();

            this.Controls.Add(n);
            n.BringToFront();
        }
Пример #2
0
        /// <summary>
        /// On page load, it forms the object of the employee i.e UserControl and bring it to front.
        /// </summary>
        private void Form1_Load(object sender, EventArgs e)
        {
            AddEmployee n = new AddEmployee();

            this.Controls.Add(n);
            n.BringToFront();
        }