Пример #1
0
        private async void OpenFileButtonClick(object sender, RoutedEventArgs e)
        {
            var picker = new FileOpenPicker();

            picker.FileTypeFilter.Add(".json");

            var file = await picker.PickSingleFileAsync();

            if (file != null)
            {
                await SessionManagerVM.CreateSessionAsync(file);
            }
        }
Пример #2
0
 private async void OnUrlBoxQuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
 {
     await SessionManagerVM.CreateSessionAsync(args.QueryText);
 }