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())); } }
public void app_window_new(object o, EventArgs args) { GtkTypeDisplayer d = CreateDisplayer(); d.ShowTypes(); }