Ejemplo n.º 1
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            MovieServiceClient proxy = new MovieServiceClient();

            IEnumerable <MovieData> datas = proxy.GetDirectorNames();

            if (datas != null)
            {
                LstDirectors.ItemsSource = datas;
            }

            proxy.Close();
        }
Ejemplo n.º 2
0
        private async void GetAllVideos_Click(object sender, EventArgs e)
        {
            MovieServiceClient client = new MovieServiceClient("NetTcpBinding_IMovieService");
            var videos = await client.GetAllAsync();

            client.Close();
            foreach (var video in videos)
            {
                ListViewItem item = new ListViewItem(video.Name);
                item.SubItems.Add(video.DateAdded.ToString());
                item.SubItems.Add(video.Description);
                VideoList.Items.Add(item);
            }
        }
Ejemplo n.º 3
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            MovieServiceClient proxy = new MovieServiceClient();

            IEnumerable<MovieData> datas = proxy.GetDirectorNames();

            if (datas != null)
            {
                LstDirectors.ItemsSource = datas;
            }

            proxy.Close();

        }