Пример #1
0
 /// <summary>
 /// Raises the <see cref="SmartPartActivated"/> event.
 /// </summary>
 protected virtual void OnSmartPartActivated(WorkspaceEventArgs e)
 {
     if (SmartPartActivated != null)
     {
         SmartPartActivated(this, e);
     }
 }
Пример #2
0
 /// <summary>
 /// Raises the <see cref="SmartPartActivated"/> event.
 /// </summary>
 /// <param name="smartPart">The smart part that was activated.</param>
 protected void RaiseSmartPartActivated(object smartPart)
 {
     if (SmartPartActivated != null)
     {
         var args = new WorkspaceEventArgs(smartPart);
         SmartPartActivated(this, args);
     }
 }
Пример #3
0
 /// <summary>
 /// Raises the <see cref="SmartPartActivated"/> event.
 /// </summary>
 /// <param name="smartPart">The smart part that was activated.</param>
 protected void RaiseSmartPartActivated(object smartPart)
 {
     if (SmartPartActivated != null)
     {
         if (smartPart is ElementHost)
         {
             smartPart = elementHosts.Unwrap((ElementHost)smartPart);
         }
         var args = new WorkspaceEventArgs(smartPart);
         SmartPartActivated(this, args);
     }
 }
Пример #4
0
 void IComposableWorkspace <Control, DockPanelSmartPartInfo> .RaiseSmartPartActivated(WorkspaceEventArgs e)
 {
     OnSmartPartActivated(e);
 }