private static void SetDescription(DocumentationWindow window, string description) { StringBuilder builder = new StringBuilder(); window.Browser.Visibility = Visibility.Collapsed; builder.Append(@"<!DOCTYPE html> <html> <head><meta http-equiv='X-UA-Compatible' content='IE=edge' /> </head><body style='background-color: #303030; color:#ffffff;'>"); builder.Append(description); builder.Append("</body></html>"); window.ModuleDescription = builder.ToString(); window.Browser.NavigateToString(window.ModuleDescription); }
private static void ProcessNewType(DocumentationWindow window, Type type) { if (type == null) { window.ModuleName = "No Module Loaded"; window.ModuleNamespace = String.Empty; SetDescription(window, String.Empty); window.ModuleParameters = null; window.ModuleSubmodules = null; } else { window.ModuleName = type.Name; window.ModuleNamespace = type.FullName; SetDescription(window, GetDescription(type)); window.ModuleParameters = GetParameters(type); window.ModuleSubmodules = GetSubmodules(type); } }
private static void SetDescription(DocumentationWindow window, string description) { StringBuilder builder = new StringBuilder(); window.Browser.Visibility = Visibility.Collapsed; builder.Append( @"<!DOCTYPE html> <html> <head><meta http-equiv='X-UA-Compatible' content='IE=edge' /> </head><body style='background-color: #303030; color:#ffffff;'>" ); builder.Append( description ); builder.Append( "</body></html>" ); window.ModuleDescription = builder.ToString(); window.Browser.NavigateToString( window.ModuleDescription ); }
private static void ProcessNewType(DocumentationWindow window, Type type) { if ( type == null ) { window.ModuleName = "No Module Loaded"; window.ModuleNamespace = String.Empty; SetDescription( window, String.Empty ); window.ModuleParameters = null; window.ModuleSubmodules = null; } else { window.ModuleName = type.Name; window.ModuleNamespace = type.FullName; SetDescription( window, GetDescription( type ) ); window.ModuleParameters = GetParameters( type ); window.ModuleSubmodules = GetSubmodules( type ); } }