コード例 #1
0
        static void Main(string[] args)
        {
            BadmintonServiceClient client = new BadmintonServiceClient();
            foreach (SportClub club in client.GetSportClubs())
            {
                Console.WriteLine(club.ID + " " + club.Naam);
                if (club.Tornooien.Length > 0)
                {
                    Console.WriteLine("Tornooien");
                    foreach (Tornooi tornooi in club.Tornooien)
                    {
                        Console.WriteLine(tornooi.Naam);
                    }
                }
            }

            Console.WriteLine("Geef id van club: ");
            string idString = Console.ReadLine();
            int id = int.Parse(idString);
            Console.WriteLine("Leden");
            foreach (Lid lid in client.GetLeden(id))
            {
                Console.WriteLine(lid.Naam);
            }
            client.Close();
        }
コード例 #2
0
 protected void SelecteerKnop_Click(object sender, EventArgs e)
 {
     BadmintonServiceClient client = new BadmintonServiceClient();
     OverzichtLeden.DataSource = client.GetLeden(Convert.ToInt32(InvoerClub.Text));
     OverzichtLeden.DataBind();
 }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     BadmintonServiceClient client = new BadmintonServiceClient();
     OverzichtClubs.DataSource = client.GetSportClubs();
     OverzichtClubs.DataBind();
 }
コード例 #4
0
 public HomeController()
 {
     client = new BadmintonServiceClient();
 }