public DependencyDetailsWindow(DependencyPackage package, RouteInfo info)
        {
            InitializeComponent();

            PackageFilesList.ItemsSource = info.ParsedDependencies.Items.Where(x => x.PkgID == package.ID);
            Title = string.Format(Localization.Strings.DepsDetailsWindowTitle, package.Name, info.Name);
        }
Exemple #2
0
        private void ListViewItem_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ListViewItem item = (ListViewItem)sender;

            if (item != default)
            {
                DependencyPackage       pkg = (DependencyPackage)item.DataContext;
                DependencyDetailsWindow ddw = new DependencyDetailsWindow(pkg, RouteInfo)
                {
                    Owner = this
                };
                ddw.ShowDialog();
            }
        }