AddIn to dissappear from workspace, when workspace is updated
Content
Hi All,
i am implemented worksapce addin, which works fine until the worksapce is updated.
when the workspace is updated (any changes to the workspace like editing a rule or addin a field to workspace).
The addin dissappear from worksapce.
here is my code. please suggest if any chages are required
[AddIn("IncidentOpenComponent", Version = "1.0.0.0")]
public class IncidentOpenComponent : Panel, IWorkspaceComponent2
{
private bool _readOnly;
private IRecordContext _recordContext;
private bool _inDesignMode;
private IGlobalContext _globalContext;
public IncidentOpenComponent(bool inDesignMode, IRecordContext context, IGlobalContext gContext)
{
this._inDesignMode = inDesignMode;
this._recordContext = context;
this._globalContext = gContext;
if (!_inDesignMode && _recordContext != null)
{
_recordContext.Saving += _recordContext_Saving;
}
}
public bool ReadOnly