mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 23:01:52 +01:00
Style: ServerListPage
This commit is contained in:
parent
9c03087fa0
commit
63ad7c0f2d
@ -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<IConnectionService>(_ConnectionService);
|
||||
containerRegistry.RegisterInstance<ICredentialService>(_CredentialService);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -4,9 +4,22 @@
|
||||
x:Class="Borepin.View.ServerListItemView"
|
||||
xmlns:pagemodel="clr-namespace:Borepin.PageModel">
|
||||
<ContentView.Content>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="{Binding Address}" />
|
||||
<Button Text="->" Command="{Binding Source={RelativeSource AncestorType={x:Type pagemodel:ServerListPageModel}}, Path=SelectInstanceCommand}" CommandParameter="{Binding .}" />
|
||||
</StackLayout>
|
||||
</ContentView.Content>
|
||||
<Grid RowSpacing="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="5" />
|
||||
<ColumnDefinition Width="7*" />
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="1" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="1"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Label Grid.Row="0" Grid.Column="1" Text="{Binding Instance.Address, StringFormat='{0}'}" Style="{StaticResource LabelStyle_Primary}"/>
|
||||
<Label Grid.Row="0" Grid.Column="2" Text="{Binding Instance.Username}" Style="{StaticResource LabelStyle_Second}" HorizontalTextAlignment="End" />
|
||||
<Button Grid.Row="0" Grid.Column="3" Margin="0, 3, 0, 3" Text="->" Command="{Binding Source={RelativeSource AncestorType={x:Type pagemodel:ServerListPageModel}}, Path=SelectInstanceCommand}" CommandParameter="{Binding .}" Style="{StaticResource ButtonStyle_Primary}"/>
|
||||
<BoxView Grid.Row="1" Grid.ColumnSpan="5" BackgroundColor="{StaticResource FifthColor}"/>
|
||||
</Grid>
|
||||
</ContentView.Content>
|
||||
</ContentView>
|
Loading…
x
Reference in New Issue
Block a user