Esempio n. 1
0
        /// <summary>
        /// addbutton method to add values to the database
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void AddButton(object sender, EventArgs e)
        {
            AddDataToEmployee();
            user.AddEmployeeBAL(em);
            DataTable dt = new DataTable();

            dt = user.GetData();
            empGrid.DataSource = dt;
            ClearData();
        }