From 63ad7c0f2db851bde8f4aa576bd30ed90afcef52 Mon Sep 17 00:00:00 2001 From: TheJoKlLa Date: Sun, 31 Jan 2021 15:30:25 +0100 Subject: [PATCH] Style: ServerListPage --- Borepin/Borepin/App.xaml.cs | 2 +- Borepin/Borepin/Service/BFFH/BFFHService.cs | 6 +---- Borepin/Borepin/View/ServerListItemView.xaml | 23 +++++++++++++++----- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Borepin/Borepin/App.xaml.cs b/Borepin/Borepin/App.xaml.cs index 1d91f3f..13553bb 100644 --- a/Borepin/Borepin/App.xaml.cs +++ b/Borepin/Borepin/App.xaml.cs @@ -66,7 +66,7 @@ namespace Borepin // Register Service _ConnectionService = new ConnectionService(); _CredentialService = new CredentialService(); - _BFFHService = new BFFHService(_ConnectionService, _CredentialService); + _BFFHService = new BFFHService(_CredentialService); containerRegistry.RegisterInstance(_ConnectionService); containerRegistry.RegisterInstance(_CredentialService); diff --git a/Borepin/Borepin/Service/BFFH/BFFHService.cs b/Borepin/Borepin/Service/BFFH/BFFHService.cs index 1b55544..c9baeb2 100644 --- a/Borepin/Borepin/Service/BFFH/BFFHService.cs +++ b/Borepin/Borepin/Service/BFFH/BFFHService.cs @@ -1,23 +1,19 @@ using Borepin.Model; -using Borepin.Service.Connections; using Borepin.Service.Credentials; using System.Threading.Tasks; using Capnp.Rpc; using System.Collections.Generic; -using System.Net.Sockets; namespace Borepin.Service.BFFH { public class BFFHService : IBFFHService { - private IConnectionService _ConnectionService; private ICredentialService _CredentialService; private FabAccessAPI.Connection _Connection; - public BFFHService(IConnectionService connectionService, ICredentialService credentialService) + public BFFHService(ICredentialService credentialService) { - _ConnectionService = connectionService; _CredentialService = credentialService; } diff --git a/Borepin/Borepin/View/ServerListItemView.xaml b/Borepin/Borepin/View/ServerListItemView.xaml index df05ca2..5584df2 100644 --- a/Borepin/Borepin/View/ServerListItemView.xaml +++ b/Borepin/Borepin/View/ServerListItemView.xaml @@ -4,9 +4,22 @@ x:Class="Borepin.View.ServerListItemView" xmlns:pagemodel="clr-namespace:Borepin.PageModel"> - -