internal static void Launch(IDesktopWindow desktopWindow) { KeyImageInformation info = KeyImageClipboard.GetKeyImageInformation(desktopWindow); if (info == null) { throw new ArgumentException("There is no valid key image data available for the given window.", "desktopWindow"); } KeyImageInformationEditorComponent component = new KeyImageInformationEditorComponent(); component.Description = info.Description; component.DocumentTitle = info.DocumentTitle; component.SeriesDescription = info.SeriesDescription; ApplicationComponentExitCode exitCode = LaunchAsDialog(desktopWindow, component, SR.TitleEditKeyImageInformation); if (exitCode == ApplicationComponentExitCode.Accepted) { info.Description = component.Description; info.DocumentTitle = component.DocumentTitle; info.SeriesDescription = component.SeriesDescription; } }
public void Edit() { //TODO: can we use an override to add actions? KeyImageInformationEditorComponent.Launch(this.Context.DesktopWindow); }