Exemple #1
0
        /// <summary>
        /// Удаление файлов и папок
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void AppBarButton_Click_7(object sender, RoutedEventArgs e)
        {
            try
            {
                var resourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView();

                ContentDialogProcecc contentDialogProcecc = new ContentDialogProcecc()
                {
                    Title = resourceLoader.GetString("TileDeleteFile")
                };
                contentDialogProcecc.Delete(viewFocusTag.fileAndFolderViewer.classListStroceSelect);
                var x = await contentDialogProcecc.ShowAsync();

                viewFocusTag.fileAndFolderViewer.Upgreid();
                // Upgreid();
            }
            catch (Exception ex)
            {
                await new MessageDialog(ex.Message).ShowAsync();
            }
        }
Exemple #2
0
        /// <summary>
        /// Копирование файлов и папок
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void AppBarButton_Click_6(object sender, RoutedEventArgs e)
        {
            if (viewFocusTag.Name == ViewFocusName.ViewLeft)
            {
                ContentDialogProcecc contentDialogProcecc = new ContentDialogProcecc()
                {
                };
                contentDialogProcecc.Copy(viewFocusTag.fileAndFolderViewer.classListStroceSelect, await StorageFolder.GetFolderFromPathAsync(ViewRight.fileAndFolderViewer.Path));
                var x = await contentDialogProcecc.ShowAsync();

                ViewRight.fileAndFolderViewer.Upgreid();
            }
            else
            {
                ContentDialogProcecc contentDialogProcecc = new ContentDialogProcecc()
                {
                };
                contentDialogProcecc.Copy(viewFocusTag.fileAndFolderViewer.classListStroceSelect, await StorageFolder.GetFolderFromPathAsync(ViewLeft.fileAndFolderViewer.Path));
                var x = await contentDialogProcecc.ShowAsync();

                ViewLeft.fileAndFolderViewer.Upgreid();
            }
            // Upgreid();
        }