public void Set(ProjectItemType resourceType, Object resource)
 {
     m_resource     = resource;
     m_resrouceType = resourceType;
     IsSelected     = RuntimeSelection.IsSelected(m_resource);
     if (m_started)
     {
         UpdatePreview();
     }
 }
 private void OnSelectionChanged(Object[] unselectedObjects)
 {
     IsSelected = RuntimeSelection.IsSelected(m_resource);
 }