Example #1
0
        public MainWindow()
        {
            InitializeComponent();
            AppConfiguration.GetValue("config");
            OpenWeatherService owp = new OpenWeatherService(null);

            owp.GetTempAsync();
        }
        public MainWindow()
        {
            InitializeComponent();

            /// TODO : Faire les appels de configuration ici ainsi que l'initialisation
            ApiHelper.InitializeClient();
            ITemperatureService ItempService = new OpenWeatherService(AppConfiguration.GetValue("apiKey"));

            vm = new TemperatureViewModel();
            vm.SetTemperatureService(ItempService);

            DataContext = vm;
        }