Beispiel #1
0
 private void UpdateDisplay()
 {
     if (dropdown.options[dropdown.value].text.CompareTo("None") == 0)
     {
         members.Clear();
     }
     else
     {
         members.Clear();
         members.UpdateMemberList(dropdown.options[dropdown.value].text);
     }
 }
Beispiel #2
0
    private void GetInGuild()
    {
        Dropdown   dropdown = GameObject.Find("Canvas/GuildList").GetComponent <Dropdown>();
        SqlCommand comm     = new SqlCommand("join_Guild", dbService.getConnection());

        comm.CommandType = System.Data.CommandType.StoredProcedure;
        SqlParameter username  = comm.Parameters.Add("@username", System.Data.SqlDbType.VarChar);
        SqlParameter guildName = comm.Parameters.Add("@GuildName", System.Data.SqlDbType.VarChar);

        username.Value  = dbService.GetUsername();
        guildName.Value = dropdown.options[dropdown.value].text;
        comm.ExecuteNonQuery();
        list.UpdateMemberList(dropdown.options[dropdown.value].text);
    }