Removed: AutoFillEntry

This commit is contained in:
TheJoKlLa 2021-01-24 22:18:54 +01:00
parent 83eccbd87d
commit 8e3ba1881b
6 changed files with 11 additions and 15 deletions

View File

@ -18,7 +18,7 @@ namespace Borepin
{ {
InitializeComponent(); InitializeComponent();
var result = await NavigationService.NavigateAsync("//NavigationPage/HostSelectPage"); var result = await NavigationService.NavigateAsync("/NavigationPage/HostSelectPage");
if (!result.Success) if (!result.Success)
{ {

View File

@ -9,13 +9,7 @@
<ContentPage.Content> <ContentPage.Content>
<StackLayout Padding="20"> <StackLayout Padding="20">
<Label Text="Host" Style="{StaticResource LabelStyle_PropertyTitle}"></Label> <Label Text="Host" Style="{StaticResource LabelStyle_PropertyTitle}"></Label>
<customControl:EntryAutoComplete <Entry Text="{Binding Host}"/>
VerticalOptions="CenterAndExpand"
Placeholder="Entry host ..."
ItemsSource="{Binding KnownHost_List}"
SearchText="{Binding Host}"
MaximumVisibleElements="5"/>
<Button Text="Detect local host" Command="{Binding DetectHostCommand}" Style="{StaticResource ButtonStyle_Primary}"/> <Button Text="Detect local host" Command="{Binding DetectHostCommand}" Style="{StaticResource ButtonStyle_Primary}"/>
<Button Text="Select Host" Command="{Binding UseHostCommand}" Style="{StaticResource ButtonStyle_Primary}"/> <Button Text="Select Host" Command="{Binding UseHostCommand}" Style="{StaticResource ButtonStyle_Primary}"/>
</StackLayout> </StackLayout>

View File

@ -71,7 +71,7 @@ namespace Borepin.PageModel
_BFFHService.Connect(builder.Uri); _BFFHService.Connect(builder.Uri);
INavigationResult result = await _NavigationService.NavigateAsync($"LoginChoosePage"); INavigationResult result = await _NavigationService.NavigateAsync("LoginChoosePage");
if (!result.Success) if (!result.Success)
{ {
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();

View File

@ -28,7 +28,7 @@ namespace Borepin.PageModel
private async void LoginPasswordCommandExecuted() private async void LoginPasswordCommandExecuted()
{ {
INavigationResult result = await _NavigationService.NavigateAsync($"LoginPasswordPage"); INavigationResult result = await _NavigationService.NavigateAsync("LoginPasswordPage");
if (!result.Success) if (!result.Success)
{ {
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();

View File

@ -13,7 +13,7 @@ namespace Borepin.PageModel
private INavigationService _NavigationService; private INavigationService _NavigationService;
private BFFHService _BFFHService; private BFFHService _BFFHService;
private string _KnownUsername = ""; private string _KnownUsername;
public LoginPasswordPageModel(INavigationService navigationService, BFFHService bffhService) public LoginPasswordPageModel(INavigationService navigationService, BFFHService bffhService)
{ {
@ -68,7 +68,7 @@ namespace Borepin.PageModel
await _BFFHService.Authenticate(Username, Password); await _BFFHService.Authenticate(Username, Password);
} }
var result = await _NavigationService.NavigateAsync("//MainPage/NavigationPage/MachinesPage"); var result = await _NavigationService.NavigateAsync("/MainPage/NavigationPage/MachinesPage");
if (!result.Success) if (!result.Success)
{ {

View File

@ -13,11 +13,11 @@ namespace Borepin.PageModel
{ {
public class MachinesPageModel : BindableBase public class MachinesPageModel : BindableBase
{ {
private INavigationService _navigationService; private INavigationService _NavigationService;
public MachinesPageModel(INavigationService navigationService) public MachinesPageModel(INavigationService navigationService)
{ {
_navigationService = navigationService; _NavigationService = navigationService;
GoToMachineCommand = new Command<object>(GoToMachineCommandExecuted); GoToMachineCommand = new Command<object>(GoToMachineCommandExecuted);
MachineList = new ObservableCollection<Machine>(BFFHService_OLD.GetMachines()); MachineList = new ObservableCollection<Machine>(BFFHService_OLD.GetMachines());
@ -32,12 +32,14 @@ namespace Borepin.PageModel
private async void GoToMachineCommandExecuted(object obj) private async void GoToMachineCommandExecuted(object obj)
{ {
_NavigationService.GetNavigationUriPath();
Machine machine = obj as Machine; Machine machine = obj as Machine;
NavigationParameters navigationParams = new NavigationParameters(); NavigationParameters navigationParams = new NavigationParameters();
navigationParams.Add("machineID", machine.ID); navigationParams.Add("machineID", machine.ID);
INavigationResult result = await _navigationService.NavigateAsync($"MachinePage", navigationParams); INavigationResult result = await _NavigationService.NavigateAsync($"MachinePage", navigationParams);
if (!result.Success) if (!result.Success)
{ {
System.Diagnostics.Debugger.Break(); System.Diagnostics.Debugger.Break();