Exemplo n.º 1
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()));
            }
        }
Exemplo n.º 2
0
        private GtkTypeDisplayer CreateDisplayer()
        {
            GtkTypeDisplayer d = new GtkTypeDisplayer();

            d.Finder    = (INodeFinder)Finder.Clone();
            d.Formatter = (INodeFormatter)Formatter.Clone();
            d.Options   = Options;
            d.InitializeInterface();
            return(d);
        }
Exemplo n.º 3
0
		private GtkTypeDisplayer CreateDisplayer ()
		{
			GtkTypeDisplayer d = new GtkTypeDisplayer ();
			d.Finder = (INodeFinder) Finder.Clone ();
			d.Formatter = (INodeFormatter) Formatter.Clone ();
			d.Options = Options;
			d.InitializeInterface ();
			return d;
		}
Exemplo n.º 4
0
        public void app_window_new(object o, EventArgs args)
        {
            GtkTypeDisplayer d = CreateDisplayer();

            d.ShowTypes();
        }