private void btnSave_Click(object sender, EventArgs e)
 {
     if (lstEvents.SelectedIndex > -1)
     {
         frmEvent myForm = new frmEvent(UserID, edtUsername.Text, (System.Data.DataRowView)lstEvents.SelectedItem, this);
         myForm.Show();
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            frmEvent myForm = new frmEvent(UserID, edtUsername.Text, this);

            myForm.Show();
        }