Esempio n. 1
0
 // Equals used by DebaterPool to find Widget by data
 public override bool Equals(object obj)
 {
     if (obj is Team)
     {
         return(((Team)obj).TeamData.Equals(TeamData));
     }
     else
     {
         return(TeamData.Equals(obj));
     }
 }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        first    = txtFirstName.Text.ToString();
        last     = txtLastName.Text.ToString();
        phone    = txtphone.Text.ToString();
        email    = userEmail.Text.ToString();
        TeamData = DropDownList1.SelectedItem.ToString();

        System.Diagnostics.Debug.WriteLine("tHE DATA IS " + TeamData);
        if (TeamData.Equals("Fool's Gold"))
        {
            teamId = "1";
        }
        else
        {
            teamId = "2";
        }
    }