protected void WindowBinder_ServiceStatusChanged( object sender, ServiceStatusChangedEventArgs e )
{
if( e.Current == InternalRunningStatus.Started )
{
RegisterWindowBinder();
}
else if( e.Current == InternalRunningStatus.Stopping )
{
UnregisterWindowBinder();
}
else if( e.Current == InternalRunningStatus.Stopped )
{
if( OnBinderStopped != null ) OnBinderStopped();
}
}