private void dataRowDouble_Click(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            var dataRow = dataGridViewAdmin.Rows[e.RowIndex];

            int.TryParse(dataRow.Cells["id"].Value.ToString(), out int id);
            if (id < 0)
            {
                return;
            }

            var frmUserAdd = new frmAdminAdd(this, id);

            frmUserAdd.ShowDialog();
        }
        private void btnAdminEdit_Click(object sender, EventArgs e)
        {
            if (dataGridViewAdmin.SelectedRows.Count > 0)
            {
                DataGridViewRow dataRow = dataGridViewAdmin.SelectedRows[0];
                int.TryParse(dataRow.Cells["id"].Value.ToString(), out int id);
                if (id < 0)
                {
                    return;
                }

                var frmUserAdd = new frmAdminAdd(this, id);
                frmUserAdd.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please select a user to update");
            }
        }
        private void btnAdminAdd_Click(object sender, EventArgs e)
        {
            var frmUserAdd = new frmAdminAdd(this);

            frmUserAdd.ShowDialog();
        }