diff --git a/examples/fdc3-appdirectory/apps-with-intents.json b/examples/fdc3-appdirectory/apps-with-intents.json index 86e225939..9b041318c 100644 --- a/examples/fdc3-appdirectory/apps-with-intents.json +++ b/examples/fdc3-appdirectory/apps-with-intents.json @@ -17,13 +17,6 @@ "interop": { "intents": { "listensFor": { - "ViewChart": { - "name": "ViewChart", - "displayName": "ViewChart", - "contexts": [ - "fdc3.instrument" - ] - } } } } @@ -51,13 +44,6 @@ "contexts": [ "fdc3.nothing" ] - }, - "ViewChart": { - "name": "ViewChart", - "displayName": "ViewChart", - "contexts": [ - "fdc3.instrument" - ] } }, "raises": {} @@ -87,13 +73,6 @@ "contexts": [ "fdc3.testContext" ] - }, - "ViewChart": { - "name": "ViewChart", - "displayName": "ViewChart", - "contexts": [ - "fdc3.instrument" - ] } }, "raises": {} diff --git a/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUiRequest.cs b/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUIRequest.cs similarity index 100% rename from src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUiRequest.cs rename to src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUIRequest.cs diff --git a/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUiResponse.cs b/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUIResponse.cs similarity index 100% rename from src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUiResponse.cs rename to src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Contracts/ResolverUIResponse.cs diff --git a/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/IResolverUiCommunicator.cs b/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/IResolverUICommunicator.cs similarity index 100% rename from src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/IResolverUiCommunicator.cs rename to src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/IResolverUICommunicator.cs diff --git a/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Infrastructure/Internal/ResolverUiMessageRouterCommunicator.cs b/src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Infrastructure/Internal/ResolverUIMessageRouterCommunicator.cs similarity index 100% rename from src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Infrastructure/Internal/ResolverUiMessageRouterCommunicator.cs rename to src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.DesktopAgent/Infrastructure/Internal/ResolverUIMessageRouterCommunicator.cs diff --git a/src/fdc3/dotnet/DesktopAgent/test/MorganStanley.ComposeUI.DesktopAgent.Tests/Infrastructure/Internal/ResolverUiMessageRouterCommunicator.Tests.cs b/src/fdc3/dotnet/DesktopAgent/test/MorganStanley.ComposeUI.DesktopAgent.Tests/Infrastructure/Internal/ResolverUIMessageRouterCommunicator.Tests.cs similarity index 96% rename from src/fdc3/dotnet/DesktopAgent/test/MorganStanley.ComposeUI.DesktopAgent.Tests/Infrastructure/Internal/ResolverUiMessageRouterCommunicator.Tests.cs rename to src/fdc3/dotnet/DesktopAgent/test/MorganStanley.ComposeUI.DesktopAgent.Tests/Infrastructure/Internal/ResolverUIMessageRouterCommunicator.Tests.cs index 9b4fec385..7001af96a 100644 --- a/src/fdc3/dotnet/DesktopAgent/test/MorganStanley.ComposeUI.DesktopAgent.Tests/Infrastructure/Internal/ResolverUiMessageRouterCommunicator.Tests.cs +++ b/src/fdc3/dotnet/DesktopAgent/test/MorganStanley.ComposeUI.DesktopAgent.Tests/Infrastructure/Internal/ResolverUIMessageRouterCommunicator.Tests.cs @@ -17,6 +17,7 @@ using MorganStanley.ComposeUI.Fdc3.DesktopAgent.Contracts; using MorganStanley.ComposeUI.Fdc3.DesktopAgent.Converters; using MorganStanley.ComposeUI.Fdc3.DesktopAgent.Infrastructure.Internal; +using MorganStanley.ComposeUI.Messaging.Abstractions; using AppMetadata = MorganStanley.ComposeUI.Fdc3.DesktopAgent.Protocol.AppMetadata; namespace MorganStanley.ComposeUI.Fdc3.DesktopAgent.Tests.Infrastructure.Internal; @@ -57,7 +58,7 @@ public async Task SendResolverUIRequest_will_return_response() It.IsAny(), It.IsAny(), It.IsAny())) - .Returns(ValueTask.FromResult( + .Returns(ValueTask.FromResult( MessageBuffer.Factory.CreateJson(new ResolverUIResponse() { AppMetadata = new AppMetadata(){ AppId = "testAppId" } diff --git a/src/messaging/dotnet/src/Abstractions/IMessageBuffer.cs b/src/messaging/dotnet/src/Abstractions/IMessageBuffer.cs index 669357e30..2b462069b 100644 --- a/src/messaging/dotnet/src/Abstractions/IMessageBuffer.cs +++ b/src/messaging/dotnet/src/Abstractions/IMessageBuffer.cs @@ -10,20 +10,19 @@ // or implied. See the License for the specific language governing permissions // and limitations under the License. -namespace MorganStanley.ComposeUI.Messaging.Abstractions +namespace MorganStanley.ComposeUI.Messaging.Abstractions; + +public interface IMessageBuffer { - public interface IMessageBuffer - { - /// - /// Gets the bytes of the underlying buffer as a - /// - /// - ReadOnlySpan GetSpan(); + /// + /// Gets the bytes of the underlying buffer as a + /// + /// + ReadOnlySpan GetSpan(); - /// - /// Gets the string value of the buffer. - /// - /// - string GetString(); - } -} + /// + /// Gets the string value of the buffer. + /// + /// + string GetString(); +} \ No newline at end of file diff --git a/src/messaging/dotnet/src/Abstractions/IMessagingService.cs b/src/messaging/dotnet/src/Abstractions/IMessagingService.cs index 8d358ee8a..51c8f2359 100644 --- a/src/messaging/dotnet/src/Abstractions/IMessagingService.cs +++ b/src/messaging/dotnet/src/Abstractions/IMessagingService.cs @@ -10,84 +10,83 @@ // or implied. See the License for the specific language governing permissions // and limitations under the License. -namespace MorganStanley.ComposeUI.Messaging.Abstractions +namespace MorganStanley.ComposeUI.Messaging.Abstractions; + +public interface IMessagingService : IAsyncDisposable { - public interface IMessagingService : IAsyncDisposable - { - /// - /// Gets the client ID of the current connection. - /// - /// - /// The returned value will be null if the client is not connected. - /// - string? ClientId { get; } + /// + /// Gets the client ID of the current connection. + /// + /// + /// The returned value will be null if the client is not connected. + /// + string? ClientId { get; } - /// - /// Asynchronously connects to the Message Router server endpoint. - /// - /// - /// - /// - /// Clients don't need to call this method before calling other methods on this type. - /// The client should automatically establish a connection when needed. - /// - ValueTask ConnectAsync(CancellationToken cancellationToken = default); + /// + /// Asynchronously connects to the Message Router server endpoint. + /// + /// + /// + /// + /// Clients don't need to call this method before calling other methods on this type. + /// The client should automatically establish a connection when needed. + /// + ValueTask ConnectAsync(CancellationToken cancellationToken = default); - /// - /// Gets an observable that represents a topic. - /// - /// - /// - /// - /// - ValueTask SubscribeAsync(string topic, - Func subscriber, - CancellationToken cancellationToken = default); + /// + /// Gets an observable that represents a topic. + /// + /// + /// + /// + /// + ValueTask SubscribeAsync(string topic, + Func subscriber, + CancellationToken cancellationToken = default); - /// - /// Publishes a message to a topic. - /// - /// - /// - /// - /// - /// - ValueTask PublishAsync(string topic, - IMessageBuffer? message = null, - PublishOptions optinos = default, - CancellationToken cancellationToken = default); + /// + /// Publishes a message to a topic. + /// + /// + /// + /// + /// + /// + ValueTask PublishAsync(string topic, + IMessageBuffer? message = null, + PublishOptions optinos = default, + CancellationToken cancellationToken = default); - /// - /// Registers a service by providing a name and handler. - /// - /// - /// - /// - /// - ValueTask RegisterServiceAsync(string endpoint, - Func> subscriber, - CancellationToken cancellationToken = default); + /// + /// Registers a service by providing a name and handler. + /// + /// + /// + /// + /// + ValueTask RegisterServiceAsync(string endpoint, + Func> subscriber, + CancellationToken cancellationToken = default); - /// - /// Removes a service registration. - /// - /// - /// - /// - ValueTask UnregisterServiceAsync(string endpoint, CancellationToken cancellationToken = default); + /// + /// Removes a service registration. + /// + /// + /// + /// + ValueTask UnregisterServiceAsync(string endpoint, CancellationToken cancellationToken = default); - /// - /// Invokes a named service. - /// - /// - /// - /// - /// - /// - ValueTask InvokeAsync( - string endpoint, - IMessageBuffer? payload = null, - InvokeOptions options = default, - CancellationToken cancellationToken = default); - } -} + /// + /// Invokes a named service. + /// + /// + /// + /// + /// + /// + ValueTask InvokeAsync( + string endpoint, + IMessageBuffer? payload = null, + InvokeOptions options = default, + CancellationToken cancellationToken = default); +} \ No newline at end of file diff --git a/src/shell/dotnet/Shell.sln b/src/shell/dotnet/Shell.sln index 64f25b434..57056cef2 100644 --- a/src/shell/dotnet/Shell.sln +++ b/src/shell/dotnet/Shell.sln @@ -53,6 +53,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_", "_", "{1944F009-EA2D-4D README.md = README.md EndProjectSection EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MorganStanley.ComposeUI.Messaging.Abstractions", "..\..\messaging\dotnet\src\Abstractions\MorganStanley.ComposeUI.Messaging.Abstractions.csproj", "{F90449AE-B26E-42E0-873B-4F0CAE6FCD98}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -107,6 +109,10 @@ Global {24E64AFE-D2C5-487D-85F3-B0CE5AC0A128}.Debug|Any CPU.Build.0 = Debug|Any CPU {24E64AFE-D2C5-487D-85F3-B0CE5AC0A128}.Release|Any CPU.ActiveCfg = Release|Any CPU {24E64AFE-D2C5-487D-85F3-B0CE5AC0A128}.Release|Any CPU.Build.0 = Release|Any CPU + {F90449AE-B26E-42E0-873B-4F0CAE6FCD98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F90449AE-B26E-42E0-873B-4F0CAE6FCD98}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F90449AE-B26E-42E0-873B-4F0CAE6FCD98}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F90449AE-B26E-42E0-873B-4F0CAE6FCD98}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -125,6 +131,7 @@ Global {24E64AFE-D2C5-487D-85F3-B0CE5AC0A128} = {DA1A43C4-F758-47E2-870A-7E5BBB946671} {B7A04459-C612-447F-9245-75DFAF23C31D} = {DA1A43C4-F758-47E2-870A-7E5BBB946671} {56F41D4A-5A4C-4F41-86CA-1B003992F083} = {DA1A43C4-F758-47E2-870A-7E5BBB946671} + {F90449AE-B26E-42E0-873B-4F0CAE6FCD98} = {E7A2C581-4BF4-47A5-8A11-59B2DEBADCA7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4C901E6C-4B9A-48C2-AB16-461040DC57B4} diff --git a/src/shell/dotnet/Shell/App.xaml.cs b/src/shell/dotnet/Shell/App.xaml.cs index 1d6ab1247..8d5a151e1 100644 --- a/src/shell/dotnet/Shell/App.xaml.cs +++ b/src/shell/dotnet/Shell/App.xaml.cs @@ -201,7 +201,7 @@ void ConfigureFdc3() services.AddFdc3AppDirectory(); services.AddSingleton(); services.AddSingleton(p => p.GetRequiredService()); - services.AddHostedService(); + services.AddHostedService(); services.Configure(fdc3ConfigurationSection); services.Configure( fdc3ConfigurationSection.GetSection(nameof(fdc3Options.DesktopAgent))); diff --git a/src/shell/dotnet/Shell/Fdc3/ResolverUi/Fdc3ResolverUIViewModel.cs b/src/shell/dotnet/Shell/Fdc3/ResolverUI/Fdc3ResolverUIViewModel.cs similarity index 87% rename from src/shell/dotnet/Shell/Fdc3/ResolverUi/Fdc3ResolverUIViewModel.cs rename to src/shell/dotnet/Shell/Fdc3/ResolverUI/Fdc3ResolverUIViewModel.cs index 035546343..70c3f97cc 100644 --- a/src/shell/dotnet/Shell/Fdc3/ResolverUi/Fdc3ResolverUIViewModel.cs +++ b/src/shell/dotnet/Shell/Fdc3/ResolverUI/Fdc3ResolverUIViewModel.cs @@ -15,6 +15,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Drawing; using System.Linq; using System.Threading; using System.Windows.Controls; @@ -22,35 +23,33 @@ using CommunityToolkit.Mvvm.Input; using Finos.Fdc3; using MorganStanley.ComposeUI.Shell.Fdc3.ResolverUI.Pages; -using Size = System.Drawing.Size; namespace MorganStanley.ComposeUI.Shell.Fdc3.ResolverUI; internal class Fdc3ResolverUIViewModel : INotifyPropertyChanged, IDisposable { - private readonly CancellationTokenSource _userCancellationTokenSource; + private readonly Page _advancedResolverUIPage; + private readonly Size _advancedResolverUISize = new(width: 800, height: 600); private readonly List _appData = new(); private readonly Page _simpleResolverUIPage; - private readonly Size _simpleResolverUISize = new(500, 400); - private readonly Page _advancedResolverUIPage; - private readonly Size _advancedResolverUISize = new(800, 600); + private readonly Size _simpleResolverUISize = new(width: 500, height: 400); + private readonly CancellationTokenSource _userCancellationTokenSource; + private double _currentHeight; private Page _currentPage; private double _currentWidth; - private double _currentHeight; - - internal CancellationToken UserCancellationToken => _userCancellationTokenSource.Token; public Fdc3ResolverUIViewModel(IEnumerable apps) { - _userCancellationTokenSource = new(); + _userCancellationTokenSource = new CancellationTokenSource(); foreach (var app in apps) { - _appData.Add(new() - { - AppMetadata = app, - Icon = app.Icons.FirstOrDefault() //First Icon from the array will be shown on the ResolverUI - }); + _appData.Add( + new ResolverUIAppData + { + AppMetadata = app, + Icon = app.Icons.FirstOrDefault() //First Icon from the array will be shown on the ResolverUI + }); } _simpleResolverUIPage = new SimpleResolverUIPage(_appData); @@ -62,11 +61,7 @@ public Fdc3ResolverUIViewModel(IEnumerable apps) OpenAdvancedViewCommand = new RelayCommand(SetCurrentPageToAdvancedView); } - private void SetCurrentSize(Size size) - { - CurrentWidth = size.Width; - CurrentHeight = size.Height; - } + internal CancellationToken UserCancellationToken => _userCancellationTokenSource.Token; public Page CurrentPage { @@ -78,19 +73,6 @@ public Page CurrentPage } } - private void SetCurrentPageToSimpleView() - { - CurrentPage = _simpleResolverUIPage; - - SetCurrentSize(_simpleResolverUISize); - } - - private void SetCurrentPageToAdvancedView() - { - CurrentPage = _advancedResolverUIPage; - SetCurrentSize(_advancedResolverUISize); - } - public ICommand OpenSimpleViewCommand { get; } public ICommand OpenAdvancedViewCommand { get; } @@ -114,21 +96,40 @@ public double CurrentHeight } } + public void Dispose() + { + _userCancellationTokenSource.Cancel(); + _userCancellationTokenSource.Dispose(); + } + public event PropertyChangedEventHandler? PropertyChanged; - protected virtual void OnPropertyChanged(string propertyName) + private void SetCurrentSize(Size size) { - PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); + CurrentWidth = size.Width; + CurrentHeight = size.Height; } - internal void CancelDialog() + private void SetCurrentPageToSimpleView() { - _userCancellationTokenSource.Cancel(); + CurrentPage = _simpleResolverUIPage; + + SetCurrentSize(_simpleResolverUISize); } - public void Dispose() + private void SetCurrentPageToAdvancedView() + { + CurrentPage = _advancedResolverUIPage; + SetCurrentSize(_advancedResolverUISize); + } + + protected virtual void OnPropertyChanged(string propertyName) + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); + } + + internal void CancelDialog() { _userCancellationTokenSource.Cancel(); - _userCancellationTokenSource.Dispose(); } -} +} \ No newline at end of file diff --git a/src/shell/dotnet/Shell/Fdc3/ResolverUi/Fdc3ResolverUIWindow.cs b/src/shell/dotnet/Shell/Fdc3/ResolverUI/Fdc3ResolverUIWindow.cs similarity index 72% rename from src/shell/dotnet/Shell/Fdc3/ResolverUi/Fdc3ResolverUIWindow.cs rename to src/shell/dotnet/Shell/Fdc3/ResolverUI/Fdc3ResolverUIWindow.cs index f1f84cf13..955c8ee1d 100644 --- a/src/shell/dotnet/Shell/Fdc3/ResolverUi/Fdc3ResolverUIWindow.cs +++ b/src/shell/dotnet/Shell/Fdc3/ResolverUI/Fdc3ResolverUIWindow.cs @@ -33,33 +33,34 @@ public ValueTask ShowResolverUI(IEnumerable ap { var dispatcher = Application.Current.Dispatcher; - Fdc3ResolverUI? resolverUI = null; + ResolverUI? resolverUI = null; Task? timeoutTask = null; - dispatcher.Invoke(() => - { - if (dispatcher.HasShutdownStarted - || dispatcher.HasShutdownFinished) + dispatcher.Invoke( + () => { - return; - } + if (dispatcher.HasShutdownStarted + || dispatcher.HasShutdownFinished) + { + return; + } - resolverUI = new Fdc3ResolverUI(apps); + resolverUI = new ResolverUI(apps); - timeoutTask = Task.Delay(timeout) - .ContinueWith((task) => resolverUI?.Close(), TaskScheduler.FromCurrentSynchronizationContext()); + timeoutTask = Task.Delay(timeout) + .ContinueWith(task => resolverUI?.Close(), TaskScheduler.FromCurrentSynchronizationContext()); - resolverUI.ShowDialog(); - }); + resolverUI.ShowDialog(); + }); //First we need to check if the timeout happened if (timeoutTask != null && timeoutTask.IsCompletedSuccessfully) { return ValueTask.FromResult( - new ResolverUIResponse() + new ResolverUIResponse { - Error = ResolveError.ResolverTimeout, + Error = ResolveError.ResolverTimeout }); } @@ -67,14 +68,14 @@ public ValueTask ShowResolverUI(IEnumerable ap && resolverUI.UserCancellationToken.IsCancellationRequested) { return ValueTask.FromResult( - new ResolverUIResponse() + new ResolverUIResponse { - Error = ResolveError.UserCancelledResolution, + Error = ResolveError.UserCancelledResolution }); } return ValueTask.FromResult( - new ResolverUIResponse() + new ResolverUIResponse { AppMetadata = resolverUI?.AppMetadata }); @@ -82,23 +83,23 @@ public ValueTask ShowResolverUI(IEnumerable ap catch (TimeoutException) { return ValueTask.FromResult( - new ResolverUIResponse() + new ResolverUIResponse { - Error = ResolveError.ResolverTimeout, + Error = ResolveError.ResolverTimeout }); } catch (Exception exception) { if (_logger.IsEnabled(LogLevel.Error)) { - _logger.LogError(exception, $"Exception thrown while showing ResolverUi."); + _logger.LogError(exception, message: "Exception thrown while showing ResolverUi."); } return ValueTask.FromResult( - new ResolverUIResponse() + new ResolverUIResponse { Error = ResolveError.ResolverUnavailable }); } } -} +} \ No newline at end of file diff --git a/src/shell/dotnet/Shell/Fdc3/ResolverUi/IResolverUIProjector.cs b/src/shell/dotnet/Shell/Fdc3/ResolverUI/IResolverUIProjector.cs similarity index 88% rename from src/shell/dotnet/Shell/Fdc3/ResolverUi/IResolverUIProjector.cs rename to src/shell/dotnet/Shell/Fdc3/ResolverUI/IResolverUIProjector.cs index 218425fec..d048e31db 100644 --- a/src/shell/dotnet/Shell/Fdc3/ResolverUi/IResolverUIProjector.cs +++ b/src/shell/dotnet/Shell/Fdc3/ResolverUI/IResolverUIProjector.cs @@ -21,15 +21,15 @@ namespace MorganStanley.ComposeUI.Shell.Fdc3.ResolverUI; /// -/// Abstraction for showing the ResolverUI for the raised intent. +/// Abstraction for showing the ResolverUI for the raised intent. /// public interface IResolverUIProjector { /// - /// Shows ResolverUi for the user to select an module to resolve the raised intent. + /// Shows ResolverUi for the user to select an module to resolve the raised intent. /// /// Possible modules to resolve the intent. /// Configurable timeout to show the blocking window for the set of time. /// ValueTask ShowResolverUI(IEnumerable apps, TimeSpan timeout); -} +} \ No newline at end of file diff --git a/src/shell/dotnet/Shell/Fdc3/ResolverUi/ImageSourceConverter.cs b/src/shell/dotnet/Shell/Fdc3/ResolverUI/ImageSourceConverter.cs similarity index 94% rename from src/shell/dotnet/Shell/Fdc3/ResolverUi/ImageSourceConverter.cs rename to src/shell/dotnet/Shell/Fdc3/ResolverUI/ImageSourceConverter.cs index f9142b205..e866bfbe0 100644 --- a/src/shell/dotnet/Shell/Fdc3/ResolverUi/ImageSourceConverter.cs +++ b/src/shell/dotnet/Shell/Fdc3/ResolverUI/ImageSourceConverter.cs @@ -18,6 +18,7 @@ using System.Windows.Media.Imaging; using Finos.Fdc3; using MorganStanley.ComposeUI.Shell.Utilities; +using Icon = System.Drawing.Icon; namespace MorganStanley.ComposeUI.Shell.Fdc3.ResolverUI; @@ -56,13 +57,13 @@ public object Convert(object value, Type targetType, object parameter, CultureIn } using var nativeIcon = - System.Drawing.Icon.ExtractAssociatedIcon(path); + Icon.ExtractAssociatedIcon(path); if (icon != null) { using var bitmap = nativeIcon.ToBitmap(); - return (BitmapImage)bitmap.ToImageSource(); + return (BitmapImage) bitmap.ToImageSource(); } return null; @@ -78,4 +79,4 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu { throw new NotImplementedException(); } -} +} \ No newline at end of file diff --git a/src/shell/dotnet/Shell/Fdc3/ResolverUi/Pages/AdvancedResolverUiPage.xaml b/src/shell/dotnet/Shell/Fdc3/ResolverUI/Pages/AdvancedResolverUIPage.xaml similarity index 75% rename from src/shell/dotnet/Shell/Fdc3/ResolverUi/Pages/AdvancedResolverUiPage.xaml rename to src/shell/dotnet/Shell/Fdc3/ResolverUI/Pages/AdvancedResolverUIPage.xaml index b3bc31297..e16cf95eb 100644 --- a/src/shell/dotnet/Shell/Fdc3/ResolverUi/Pages/AdvancedResolverUiPage.xaml +++ b/src/shell/dotnet/Shell/Fdc3/ResolverUI/Pages/AdvancedResolverUIPage.xaml @@ -11,24 +11,23 @@ See the License for the specific language governing permissions and limitations @@ -37,25 +36,25 @@ See the License for the specific language governing permissions and limitations - + @@ -70,12 +69,12 @@ See the License for the specific language governing permissions and limitations - + Grid.Row="1"> -