Stetic.Project.NotifyProjectReloaded C# (CSharp) Method

NotifyProjectReloaded() private method

private NotifyProjectReloaded ( ) : void
return void
        internal void NotifyProjectReloaded()
        {
            GuiDispatch.InvokeSync (delegate {
                if (ProjectReloaded != null)
                    ProjectReloaded (this, EventArgs.Empty);
            });
        }

Usage Example

        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();
        }
All Usage Examples Of Stetic.Project::NotifyProjectReloaded