/// <summary> /// Raises the <see cref="SmartPartActivated"/> event. /// </summary> protected virtual void OnSmartPartActivated(WorkspaceEventArgs e) { if (SmartPartActivated != null) { SmartPartActivated(this, e); } }
/// <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); } }
/// <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); } }
void IComposableWorkspace <Control, DockPanelSmartPartInfo> .RaiseSmartPartActivated(WorkspaceEventArgs e) { OnSmartPartActivated(e); }