void Run()
        {
            TraceUtil.Init();
            InitializeServices();

            needsGettingStarted = ComponentInspectorProperties.ShowGettingStartedDialog;

            Application.EnableVisualStyles();
            Application.Idle += new EventHandler(IdleHandler);
            objectBrowserForm = new ObjectBrowserForm();

            // If a file was specified on the command line, open only
            // that, otherwise restore any previously opened assemblies
            if (fileToOpen != null)
            {
                objectBrowserForm.OpenFile(fileToOpen);
            }
            else
            {
                ComSupport.RestoreComEnvironment();
                AssemblySupport.RestoreAssemblies();
            }

            startupComplete = true;
            Application.Run(objectBrowserForm);
        }
Exemple #2
0
        public ObjectBrowserForm()
        {
            _instance = this;

            using (SplashDialog splash = new SplashDialog()) {
                splash.SplashProductName = ".NET Component Inspector";
                splash.Show();
                Application.DoEvents();
                InitializeComponent();

                new System.Resources.ResourceManager(typeof(ObjectBrowser));
            }

            Show();
            AssemblySupport.AddCurrentAssemblies();
        }
		public ObjectBrowserForm()
		{
			_instance = this;
			
			using (SplashDialog splash = new SplashDialog()) {
				splash.SplashProductName = ".NET Component Inspector";
				splash.Show();
				Application.DoEvents();
				InitializeComponent();
				
				new System.Resources.ResourceManager(typeof(ObjectBrowser));
			}

			Show();
			AssemblySupport.AddCurrentAssemblies();
		}
		void Run()
		{
			TraceUtil.Init();
			InitializeServices();

			needsGettingStarted = ComponentInspectorProperties.ShowGettingStartedDialog;

			Application.EnableVisualStyles();
			Application.Idle += new EventHandler(IdleHandler);
			objectBrowserForm = new ObjectBrowserForm();
							
			// If a file was specified on the command line, open only
			// that, otherwise restore any previously opened assemblies
			if (fileToOpen != null) {
				objectBrowserForm.OpenFile(fileToOpen);
			} else {
				ComSupport.RestoreComEnvironment();
				AssemblySupport.RestoreAssemblies();
			}

			startupComplete = true;
			Application.Run(objectBrowserForm);
		}