Пример #1
0
 public SearchWindow(MainWindow parent)
 {
     InitializeComponent();
     clientWCF = parent.getClientWFC();
     typeRecherche.SelectedIndex = 0;
     this.parent = parent;
 }
Пример #2
0
 public InfosWindows(FilmDTO film, ServiceReference.ServiceWCFSmartClient client)
 {
     InitializeComponent();
     film                            = client.GetFilmInfo(film.id);
     posterImg.Source                = new BitmapImage(new Uri("http://image.tmdb.org/t/p/w185/" + film.poster_path, UriKind.RelativeOrAbsolute));
     title.Content                   = film.titre;
     oriTitle.Content                = film.original_title;
     runtime.Content                 = film.runtime + " minutes";
     genresLB.ItemsSource            = new ObservableCollection <GenreDTO>(film.genres);
     genresLB.DisplayMemberPath      = "Name";
     actorsLB.ItemsSource            = new ObservableCollection <ActorDTO>(film.actors);
     actorsLB.DisplayMemberPath      = "name";
     realisatorsLB.ItemsSource       = new ObservableCollection <RealisateurDTO>(film.realisateurs);
     realisatorsLB.DisplayMemberPath = "Name";
 }
Пример #3
0
        public MainWindow()
        {
            RegistryHelper registry = new RegistryHelper();

            if (registry.Read("dbHost") == null || registry.Read("dbName") == null || registry.Read("dbInstance") == null)
            {
                SettingsWindow sw = new SettingsWindow();
                sw.ShowDialog();
            }

            InitializeComponent();

            listDBFilms = new ObservableCollection <FilmDTO>();
            listDBVideo = new ObservableCollection <FilmDTO>();

            clientService               = new ServiceReference.ServiceWCFSmartClient();
            DBFilmsLV.ItemsSource       = listDBFilms;
            DBVideothequeLV.ItemsSource = listDBVideo;
        }