GlobalData class missing while following the Internet Explorer Plugin Settings Synchronize article

Add-in Express™ Support Service
That's what is more important than anything else

GlobalData class missing while following the Internet Explorer Plugin Settings Synchronize article
 
Hernan




Posts: 37
Joined: 2011-01-28
Hi,

I'm trying to sync IE Tabs settings as describen in http://www.add-in-express.com/creating-addins-blog/2009/06/19/internet-explorer-plugin-settings-synchronize.

In one paragraph you mention:
Now, add to the project your own class, a descendent of ADXIESharedMemory, by using “ADX IE Shared Data” wizard and modify the GlobalData class, which is present in every IE plug-in project.


but i coudn't find that GlobalData class you were talking about. Just to check i didn't removed it by mistake, i created a new ADX project but it was missing from it also.

Am i doing something wrong?

Thank you very much
Posted 16 Jun, 2011 09:24:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7234
Joined: 2004-07-05
Hi Hernan,

The GlobalData class was removed from new projects. It doesn't need anymore.
Posted 16 Jun, 2011 09:53:17 Top
Hernan




Posts: 37
Joined: 2011-01-28
How should i share settings now that this class is not needed anymore?

The class i've created that inherits from ADXIESharedMemory is thread safe to, say, access it's properties?

Can you provide a sample updated to guide me in the implementation?

Thanks again,
Posted 16 Jun, 2011 11:13:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7234
Joined: 2004-07-05
Hernan, you just need to move all the code from the GlobalData class to IEModule or just use the GlobalData template below:

[ComVisible(false)]
public class GlobalData
{
private static GlobalData instance = null;

public GlobalData()
{
}

public static GlobalData Instance
{
get
{
if (instance == null)
instance = new GlobalData();
return instance;
}
}
}
Posted 16 Jun, 2011 12:58:00 Top