private void OpenAssembly(string[] assemblies) { try { foreach (string s in assemblies) { Trace.WriteLineIf(info.TraceInfo, string.Format("loading assembly: {0}", s)); } GtkTypeDisplayer d = null; if (base.Assemblies.Count == 0) { d = this; } else { d = CreateDisplayer(); } TypeLoader tl = TypeReflectorApp.CreateLoader(Options); tl.Assemblies = assemblies; TypeReflectorApp.FindTypes(d, tl, new string[] { "." }); d.ShowTypes(); } catch (Exception e) { Trace.WriteLineIf(info.TraceError, string.Format("Error opening assembly: {0}", e.ToString())); } }
private GtkTypeDisplayer CreateDisplayer() { GtkTypeDisplayer d = new GtkTypeDisplayer(); d.Finder = (INodeFinder)Finder.Clone(); d.Formatter = (INodeFormatter)Formatter.Clone(); d.Options = Options; d.InitializeInterface(); return(d); }
private GtkTypeDisplayer CreateDisplayer () { GtkTypeDisplayer d = new GtkTypeDisplayer (); d.Finder = (INodeFinder) Finder.Clone (); d.Formatter = (INodeFormatter) Formatter.Clone (); d.Options = Options; d.InitializeInterface (); return d; }
public void app_window_new(object o, EventArgs args) { GtkTypeDisplayer d = CreateDisplayer(); d.ShowTypes(); }