private async void OnShowFilePropertiesCmdExecute()
        {
            FilePropertiesView      filePropertiesView      = new FilePropertiesView();
            FilePropertiesViewModel filePropertiesViewModel =
                new FilePropertiesViewModel(filePropertiesView, SelectedFile);
            bool?result = await dialogService.InitDialog(filePropertiesView, filePropertiesViewModel);

            filePropertiesViewModel.Dispose();
        }
Пример #2
0
        private void OnShowFilePropertiesCmdExecute()
        {
            Dictionary <string, string> properties = null;
            Dictionary <string, string> security   = null;
            Dictionary <string, string> info       = null;

            if (SelectedFile.GetProperties(out properties, out info, out security) == Define.Success)
            {
                FilePropertiesViewModel filePropertiesViewModel =
                    new FilePropertiesViewModel(SelectedFile.Info.FullName, properties, info, security);
                FilePropertiesView propertiesView = new FilePropertiesView();
                propertiesView.DataContext = filePropertiesViewModel;
                propertiesView.Owner       = App.Current.MainWindow;
                propertiesView.Show();
            }
        }