コード例 #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
ファイル: SwfTypeDisplayer.cs プロジェクト: emtees/old-code
		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()));
			}
		}