Exemple #1
0
        private void OpenAssemblies(string[] assemblies)
        {
            SwfTypeDisplayer d = null;

            if (base.Assemblies.Count == 0)
            {
                d = this;
            }
            else
            {
                d           = new SwfTypeDisplayer();
                d.Finder    = Finder;
                d.Formatter = Formatter;
                d.Options   = Options;
            }

            TypeLoader tl = TypeReflectorApp.CreateLoader(Options);

            tl.Assemblies = assemblies;

            try {
                TypeReflectorApp.FindTypes(d, tl, new string[] { "." });
                d.ShowTypes();
            }
            catch (Exception e) {
                ShowError(string.Format("Unable to load Assembly '{0}': {1}",
                                        assemblies, e.ToString()));
            }
        }
Exemple #2
0
        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()));
            }
        }