public void LoadStatus(object ob)
        {
            if (frontend != null)
            {
                frontend.NotifyProjectReloading();
            }
            if (ProjectReloading != null)
            {
                ProjectReloading(this, EventArgs.Empty);
            }

            ProjectIconFactory icf = iconFactory;

            Read((XmlDocument)ob);

            // Reuse the same icon factory, since a registry change has no effect to it
            // and it may be inherited from another project
            iconFactory = icf;

            if (frontend != null)
            {
                frontend.NotifyProjectReloaded();
            }
            if (ProjectReloaded != null)
            {
                ProjectReloaded(this, EventArgs.Empty);
            }
            NotifyComponentTypesChanged();
        }
Exemple #2
0
        void OnRegistryChanged(object o, EventArgs args)
        {
            if (loading)
            {
                return;
            }

            if (tempDoc != null)
            {
                if (frontend != null)
                {
                    frontend.NotifyProjectReloading();
                }
                if (ProjectReloading != null)
                {
                    ProjectReloading(this, EventArgs.Empty);
                }

                ProjectIconFactory icf = iconFactory;

                Read(tempDoc);

                // Reuse the same icon factory, since a registry change has no effect to it
                // and it may be inherited from another project
                iconFactory = icf;

                tempDoc = null;
                if (frontend != null)
                {
                    frontend.NotifyProjectReloaded();
                }
                if (ProjectReloaded != null)
                {
                    ProjectReloaded(this, EventArgs.Empty);
                }
                NotifyComponentTypesChanged();
            }
        }