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();
}