Exemplo n.º 1
0
        private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            _graphService = new GraphService(Surface);
            _graphService.Run(Surface);

            _graphService.UserSelected  += GraphServiceOnUserSelected;
            _graphService.UserNavigated += GraphServiceOnUserNavigated;

            var properties = typeof(GraphService).GetProperties()
                             .Where(i => i.GetCustomAttribute <RangeAttribute>() != null)
                             .ToArray();

            _settingsWindow = new SettingsWindow(properties, _graphService);

            Auth(false);
        }