Changed internal Bindings to create last functional state with new API

This commit is contained in:
TheJoKlLa 2021-09-17 13:51:02 +02:00
parent b0049f1803
commit 614aa7a8ca
4 changed files with 5 additions and 4 deletions

View File

@ -21,8 +21,8 @@
<StackLayout IsVisible="{Binding IsBusy, Converter={StaticResource InvertBoolConverter}}"> <StackLayout IsVisible="{Binding IsBusy, Converter={StaticResource InvertBoolConverter}}">
<Label Text="{Binding Name}" Style="{StaticResource LabelStyle_Title}"/> <Label Text="{Binding Name}" Style="{StaticResource LabelStyle_Title}"/>
<!--<Button Text="Use" Command="{Binding UseMachineCommand}" IsVisible="{Binding MachineItem.Use, Converter=IsNotNullBoolConverter}" Style="{StaticResource Style_Button_Primary}"/> <Button Text="Use" Command="{Binding UseMachineCommand}" IsVisible="{Binding MachineItem.CanUse}" Style="{StaticResource Style_Button_Primary}"/>
<Button Text="GiveBack" Command="{Binding GiveBackMachineCommand}" IsVisible="{Binding MachineItem.Inuse, Converter=IsNotNullBoolConverter}" Style="{StaticResource Style_Button_Primary}"/>--> <Button Text="GiveBack" Command="{Binding GiveBackMachineCommand}" IsVisible="{Binding MachineItem.CanInUse}" Style="{StaticResource Style_Button_Primary}"/>
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</ContentPage.Content> </ContentPage.Content>

View File

@ -7,8 +7,8 @@
<ContentPage Title="FabAccess"> <ContentPage Title="FabAccess">
<StackLayout> <StackLayout>
<Button Text="Machines" Command="{Binding NavigateCommand}" CommandParameter="MachineListPage" /> <Button Text="Machines" Command="{Binding NavigateCommand}" CommandParameter="MachineListPage" />
<Button Text="Settings" Command="{Binding NavigateCommand}" CommandParameter="SettingsPage" />
<Button Text="Servers" Command="{Binding NavigateCommand}" CommandParameter="ServerListPage" /> <Button Text="Servers" Command="{Binding NavigateCommand}" CommandParameter="ServerListPage" />
<!--<Button Text="Settings" Command="{Binding NavigateCommand}" CommandParameter="SettingsPage" />-->
</StackLayout> </StackLayout>
</ContentPage> </ContentPage>
</FlyoutPage.Flyout> </FlyoutPage.Flyout>

View File

@ -30,6 +30,7 @@ namespace Borepin.PageModel
{ {
if (_BFFHService.ActiveConnection == null) if (_BFFHService.ActiveConnection == null)
{ {
IsBusy = false;
return; return;
} }
else else

View File

@ -111,7 +111,7 @@ namespace Borepin.PageModel
} }
private async void AddInstancesCommandExecuted() private async void AddInstancesCommandExecuted()
{ {
INavigationResult result = await _NavigationService.NavigateAsync("HostSelectPage"); INavigationResult result = await _NavigationService.NavigateAsync("AddServerProcess_HostSelectPage");
if (!result.Success) if (!result.Success)
{ {
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();