private void BackB_Click(object sender, EventArgs e)
        {
            this.Hide();
            EventActions eventActions = new EventActions(usingUserId);

            eventActions.Show();
        }
 private void LoginB_Click(object sender, EventArgs e)
 {
     if (userNameBox.Text == "")
     {
         MessageBox.Show("Put a valid Username..");
     }
     else if (passwordBox.Text == "")
     {
         MessageBox.Show("Put a valid Password..");
     }
     else
     {
         UserDataService userDataService = new UserDataService();
         int             result          = userDataService.UserAuthentication(userNameBox.Text, passwordBox.Text);
         if (result > 0)
         {
             int userid = userDataService.GetUserId(userNameBox.Text, passwordBox.Text);
             this.Hide();
             EventActions eventActions = new EventActions(userid);
             eventActions.Show();
         }
         else
         {
             MessageBox.Show("User Doesn't Exist!");
         }
     }
 }