Пример #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()));
            }
        }
Пример #2
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()));
			}
		}