private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) { detailView.DataSource = null; detailView.Visible = false; propertyGrid1.SelectedObject = null; propertyGrid1.Visible = false; notSupportedTextBox.Visible = false; if (e.Node.Text == "All Product Info") { notSupportedTextBox.Text = "Select category from left"; notSupportedTextBox.Visible = true; } else if (e.Node.Text == "Basic Info") { propertyGrid1.Visible = true; propertyGrid1.SelectedObject = new AssemblyAttributeInfo(m_assembly); } else if (e.Node.Text == "Assembly Info") { propertyGrid1.Visible = true; propertyGrid1.SelectedObject = m_assembly; } else if (e.Node.Text == "Refrenced Assemblies") { detailView.DataSource = m_assembly.GetReferencedAssemblies(); detailView.Visible = true; } else if (e.Node.Text == "Exported Types") { detailView.DataSource = m_assembly.GetExportedTypes(); detailView.Visible = true; } else if (e.Node.Text == "Files") { detailView.DataSource = m_assembly.GetFiles(); detailView.Visible = true; } else if (e.Node.Text == "Loaded Modules") { detailView.DataSource = m_assembly.GetLoadedModules(); detailView.Visible = true; } else if (e.Node.Text == "Resource Names") { detailView.DataSource = m_assembly.GetManifestResourceNames(); detailView.Visible = true; } else if (e.Node.Text == "Modules") { detailView.DataSource = m_assembly.GetModules(); detailView.Visible = true; } else if (e.Node.Text == "Defined Types") { detailView.DataSource = m_assembly.GetTypes(); detailView.Visible = true; } else if (e.Node.Text == "Executable File Info") { propertyGrid1.SelectedObject = FileVersionInfo.GetVersionInfo(m_assembly.Location); propertyGrid1.Visible = true; } else if (e.Node.Text == "Environment") { propertyGrid1.SelectedObject = CommonFunctions.GetPropertyBagForStaticMembers(typeof(System.Environment)); propertyGrid1.Visible = true; } else if (e.Node.Text == "Task View") { detailView.DataSource = Process.GetProcesses(); detailView.Visible = true; } else if (e.Node.Text == "Culture Info") { propertyGrid1.SelectedObject = System.Threading.Thread.CurrentThread.CurrentCulture; propertyGrid1.Visible = true; } else if (e.Node.Text == "Time Zone") { propertyGrid1.SelectedObject = System.TimeZone.CurrentTimeZone; propertyGrid1.Visible = true; } else if (e.Node.Text == "Date Time Formats") { propertyGrid1.SelectedObject = System.Globalization.DateTimeFormatInfo.CurrentInfo; propertyGrid1.Visible = true; } else if (e.Node.Text == "Number Formats") { propertyGrid1.SelectedObject = System.Globalization.NumberFormatInfo.CurrentInfo; propertyGrid1.Visible = true; } else if (e.Node.Text == "Region Info") { propertyGrid1.SelectedObject = System.Globalization.RegionInfo.CurrentRegion; propertyGrid1.Visible = true; } else { notSupportedTextBox.Text = e.Node.Text + " is not implemented yet"; notSupportedTextBox.Visible = true; } }