01-15-2008 09:01 AM
Besides deriving from BaseComponent for creating a custom dashboard component you can just derive from UserControl and implement the IFrameworkDashboardBoundControl interface.
This interface is defined as follows:public interface IFrameworkDashboardBoundControl
This interface allows your component to be able to get a reference to the ActFrameworkDashboardComponent so you can sign up for it's events and get access to the ActFramework object of the logged in ACT! application.
You will want to hold on to a reference to this object for your component to be able to access the ActFramework SDK from your component.
Here is a typical implementation of this interface:public ActFrameworkDashboardComponent FrameworkComponent
When the dashboard loader loads a dashboard that contains your component the ActFrameworkDashboardComponent will be set on it after creation. Upon closing the dashboard ACT! will call back on this property with null for the ActFrameworkDashboardComponent so you can detach from the events of the old ActFrameworkDashboardComponent.
All of the behavior I mentioned about the Connected and Display events in the previous blog entry apply to implementing a custom dashboard component this way as well.