private void btnNew_Click(object sender, EventArgs e)
        {
            frmEmployeeSetup frmEmployeeSetup = new frmEmployeeSetup(new Shared.Employee());

            frmEmployeeSetup.ShowDialog();
            RefreshData();
        }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgEmployee.SelectedRows.Count > 0)
     {
         frmEmployeeSetup frmEmployeeSetup = new frmEmployeeSetup(Shared.Global.GetEmployee((int)dgEmployee.SelectedRows[0].Cells["Id"].Value));
         frmEmployeeSetup.ShowDialog();
         RefreshData();
     }
     else
     {
         MessageBox.Show("Please Select employee");
     }
 }