private void _buttonProperties_Click(object sender, RoutedEventArgs e) { PropertyWindow w = new PropertyWindow(_entry.SubComponent) { Owner = Window.GetWindow(this), WindowStartupLocation = WindowStartupLocation.CenterOwner }; w.ShowDialog(); }
private void _buttonInstall_Click(object sender, RoutedEventArgs e) { PackageManager p = new PackageManager(); var lst = p.GetDownloadablePackages(_entry.ComponentType, 2); if (lst == null) { MessageBox.Show("Couldn't receive list"); return; } PropertyWindow w = new PropertyWindow(lst) { Owner = Window.GetWindow(this), WindowStartupLocation = WindowStartupLocation.CenterOwner, }; w.InstallEvent += W_InstallEvent; w.ShowDialog(); w.InstallEvent -= W_InstallEvent; }