private void btnEdit_Click(object sender, EventArgs e)
        {
            if (flag && dgvUsers.SelectedRows.Count == 1)
            {
                int index = dgvUsers.SelectedRows[0].Index;

                String employeeID = employees.EmployeeTable.Rows[index]["employeeID"].ToString();
                if (employeeID != "" + User.ID)
                {
                    flag = false;
                    if (edit == null || edit.IsDisposed)
                    {
                        edit           = new EditEmployee(index, this);
                        edit.MdiParent = this.MdiParent;
                    }
                    edit.Show();

                    //employees.editUser(employeeID);
                    //updateEmployees();
                }
                else
                {
                    MessageBox.Show("You cannot edit your own profile", "Edit Employee");
                }
            }
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (flag && dgvUsers.SelectedRows.Count == 1)
            {
                int index = dgvUsers.SelectedRows[0].Index;

                String employeeID = employees.EmployeeTable.Rows[index]["employeeID"].ToString();
                if (employeeID != "" + User.ID)
                {
                    flag = false; 
                    if (edit == null || edit.IsDisposed)
                    {
                        edit = new EditEmployee(index, this);
                        edit.MdiParent = this.MdiParent;
                    }
                    edit.Show();

                    //employees.editUser(employeeID);
                    //updateEmployees();
                }
                else
                {
                    MessageBox.Show("You cannot edit your own profile", "Edit Employee");
                }
            }
        }