public void ApplicationInstallsSelectionChangedHandler(object sender, ApplicationInstallsEventArgs e) { // Add the selected application as the only application in our list _listApplications.Clear(); _selectedOSs.Clear(); // OK have we selected licenses for an OS or Application - the passed object should know Object nodeObject = e.SelectedNodeObject; if (nodeObject is InstalledApplication) { _listApplications.Add(e.SelectedNodeObject as InstalledApplication); } else { _selectedOSs.Add(e.SelectedNodeObject as InstalledOS); } // Set the INSTANCES tab view to be the active view ILaytonView instancesView = WorkItem.Items[Properties.Settings.Default.InstancesTabView] as ILaytonView; SwitchActiveTabView(instancesView); ((InstancesTabView)instancesView).Presenter.ShowApplicationInstances(nodeObject); }
public void ApplicationInstallsSelectionChangedHandler(object sender, ApplicationInstallsEventArgs e) { presenter.ShowApplicationInstances(e.SelectedNodeObject); }