protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { UpdateEnabled(); /* * if (!KeyImageClipboard.HasViewPlugin()) * { * if (SelectedPresentationImage.ParentDisplaySet.Descriptor is KeyImageDisplaySetDescriptor) * { * foreach (ClearCanvas.Desktop.Actions.Action a in this.Actions) * { * // TODO (CR Phoenix5 - High): use the ID, which doesn't change; this will change with language. * if (a.Path.LocalizedPath.Equals("imageviewer-contextmenu/MenuCreateKeyImage") | a.Path.LocalizedPath.Equals("global-toolbars/ToolbarStandard/Create Key Image")) | { | a.IconSet = new IconSet("Icons.DeleteToolSmall.png", "Icons.DeleteToolSmall.png", "Icons.DeleteToolSmall.png"); | } | } | } | else | { | foreach (ClearCanvas.Desktop.Actions.Action a in this.Actions) | { | // TODO (CR Phoenix5 - High): use the ID, which doesn't change; this will change with language. | if (a.Path.LocalizedPath.Equals("imageviewer-contextmenu/MenuCreateKeyImage") || a.Path.LocalizedPath.Equals("global-toolbars/ToolbarStandard/Create Key Image")) || { || a.IconSet = new IconSet("Icons.CreateKeyImageToolSmall.png", "Icons.CreateKeyImageToolMedium.png", "Icons.CreateKeyImageToolLarge.png"); || } || } || } ||} */ }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); if (_publisher != null) _publisher.PublishNow(); }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs presentationImageSelectedEventArgs) { SetSelectedGraphic( presentationImageSelectedEventArgs.SelectedPresentationImage != null && presentationImageSelectedEventArgs.SelectedPresentationImage.SelectedGraphic != null && presentationImageSelectedEventArgs.SelectedPresentationImage.SelectedGraphic.Selected ? presentationImageSelectedEventArgs.SelectedPresentationImage.SelectedGraphic : null, "Presentation Image Selected"); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); IPresentationImage selectedPresentationImage = base.SelectedPresentationImage; IDisplaySet set = (selectedPresentationImage != null) ? selectedPresentationImage.ParentDisplaySet : null; base.Enabled = set != null; }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); if (e.SelectedPresentationImage != null) this.SelectedDisplaySet = e.SelectedPresentationImage.ParentDisplaySet; else this.SelectedDisplaySet = null; }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { //TODO (CR May 2010): this is not ideal. We should actually implement DropDownMenuModelChanged on the //dropdown action classes, which is really the only reason for this being here. foreach (var actionHandler in _actionHandlers) { actionHandler.Update(); } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); if (_selectedPresentationImage != this.SelectedPresentationImage) { _selectedPresentationImage = this.SelectedPresentationImage; _actions = null; } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); if (_selectedPresentationImage != this.SelectedPresentationImage) { _selectedPresentationImage = this.SelectedPresentationImage; _actions = null; } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); if (_publisher != null) { _publisher.PublishNow(); } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { RemovePinwheelGraphic(); UpdateRotationAxis(); if (Visible && Active) { AddPinwheelGraphic(); } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { if (e.SelectedPresentationImage != null) { UpdateEnabled(e.SelectedPresentationImage.ParentDisplaySet); } else { UpdateEnabled(null); } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); if (e.SelectedPresentationImage != null) { this.SelectedDisplaySet = e.SelectedPresentationImage.ParentDisplaySet; } else { this.SelectedDisplaySet = null; } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); IImageBox imageBox = this.SliceImageBox; IDisplaySet selectedDisplaySet = null; if (this.SelectedPresentationImage != null) { selectedDisplaySet = this.SelectedPresentationImage.ParentDisplaySet; } // only allow tool if we're in a MprViewerComponent, and we're not going to be operating on ourself! base.Enabled = (this.ImageViewer != null) && (imageBox != null && selectedDisplaySet != null && selectedDisplaySet != imageBox.DisplaySet); }
void EventBroker_PresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { IOverlayGraphicsProvider provider = e.SelectedPresentationImage as IOverlayGraphicsProvider; CadOverlayGraphic cadOverlay = GetCadOverlayGraphic(provider); if (cadOverlay == null) { this.ThresholdEnabled = false; this.OpacityEnabled = false; } else { this.Threshold = cadOverlay.Threshold; this.Opacity = cadOverlay.Opacity; this.ThresholdEnabled = true; this.OpacityEnabled = true; } }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { UpdateEnabled(); }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { _stackingSynchronizationTool.SynchronizeImageBoxes(); OnSynchronizedImageBoxes(); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { UpdateEnabled(); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); IImageBox imageBox = this.SliceImageBox; IDisplaySet selectedDisplaySet = null; if (this.SelectedPresentationImage != null) selectedDisplaySet = this.SelectedPresentationImage.ParentDisplaySet; // only allow tool if we're in a MprViewerComponent, and we're not going to be operating on ourself! base.Enabled = (this.ImageViewer != null) && (imageBox != null && selectedDisplaySet != null && selectedDisplaySet != imageBox.DisplaySet); }
private void EventBroker_PresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { Update(); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.Enabled = _operation.GetOriginator(e.SelectedPresentationImage) != null; }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { UpdateEnabled(); /* if (!KeyImageClipboard.HasViewPlugin()) { if (SelectedPresentationImage.ParentDisplaySet.Descriptor is KeyImageDisplaySetDescriptor) { foreach (ClearCanvas.Desktop.Actions.Action a in this.Actions) { // TODO (CR Phoenix5 - High): use the ID, which doesn't change; this will change with language. if (a.Path.LocalizedPath.Equals("imageviewer-contextmenu/MenuCreateKeyImage") | a.Path.LocalizedPath.Equals("global-toolbars/ToolbarStandard/Create Key Image")) { a.IconSet = new IconSet("Icons.DeleteToolSmall.png", "Icons.DeleteToolSmall.png", "Icons.DeleteToolSmall.png"); } } } else { foreach (ClearCanvas.Desktop.Actions.Action a in this.Actions) { // TODO (CR Phoenix5 - High): use the ID, which doesn't change; this will change with language. if (a.Path.LocalizedPath.Equals("imageviewer-contextmenu/MenuCreateKeyImage") || a.Path.LocalizedPath.Equals("global-toolbars/ToolbarStandard/Create Key Image")) { a.IconSet = new IconSet("Icons.CreateKeyImageToolSmall.png", "Icons.CreateKeyImageToolMedium.png", "Icons.CreateKeyImageToolLarge.png"); } } } } */ }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); this.Enabled = (e.SelectedPresentationImage is ILayerOpacityProvider); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); UpdateVisible(); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); this.Enabled = (e.SelectedPresentationImage is ILayerOpacityProvider); }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { SetSelectedAnnotation(e.SelectedPresentationImage == null ? null : e.SelectedPresentationImage.SelectedGraphic); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.Enabled = _operation.GetOriginator(e.SelectedPresentationImage) != null; }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { this.Enabled = e.SelectedPresentationImage is IColorMapProvider; }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { if (e.SelectedPresentationImage != null) this.UpdateEnabled(e.SelectedPresentationImage.ParentDisplaySet); else this.UpdateEnabled(null); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { RemovePinwheelGraphic(); UpdateRotationAxis(); if (Visible && Active) { AddPinwheelGraphic(); } }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { UpdateImageProperties(e.SelectedPresentationImage); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { UpdateDeleteAllVisible(); base.OnPresentationImageSelected(sender, e); }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); UpdateCheckState(); }
/// <summary> /// Event Handler for <see cref="EventBroker.PresentationImageSelected"/>. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { Enabled = e.SelectedPresentationImage != null; }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { // NO-OP - prevent base functionality }
protected override void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { base.OnPresentationImageSelected(sender, e); UpdateCheckState(); thumbileChanged(e.SelectedPresentationImage.ParentDisplaySet); }
private void OnPresentationImageSelected(object sender, PresentationImageSelectedEventArgs e) { this.Enabled = e.SelectedPresentationImage is IColorMapProvider; }