private async void LoadFile()
        {
            if (App.ViewModel.SelectedFile != null)
            {
                FilesResult result = await App.ViewModel.LoadSelectedFile();

                if (!result.Success)
                {
                    MessageBox.Show(result.Message);
                }
            }
        }
Exemplo n.º 2
0
        private async void LoadFileList()
        {
            FilesResult result = await App.ViewModel.GetFiles();

            if (!result.Success)
            {
                MessageBox.Show(result.Message);
            }
            else
            {
                MainLongListSelector.ItemsSource = App.ViewModel.Files;
            }
        }