示例#1
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();
            }
        }
        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();
            }
        }