diff --git a/Borepin/Borepin.iOS/Borepin.iOS.csproj b/Borepin/Borepin.iOS/Borepin.iOS.csproj
index dfc177f..7dc770f 100644
--- a/Borepin/Borepin.iOS/Borepin.iOS.csproj
+++ b/Borepin/Borepin.iOS/Borepin.iOS.csproj
@@ -31,6 +31,8 @@
true
iPhone Developer
14.5
+ Borepin Distribution Profile 2021
+ Entitlements.plist
none
diff --git a/Borepin/Borepin/App.xaml.cs b/Borepin/Borepin/App.xaml.cs
index 69b1e29..7fcc0d7 100644
--- a/Borepin/Borepin/App.xaml.cs
+++ b/Borepin/Borepin/App.xaml.cs
@@ -35,33 +35,37 @@ namespace Borepin
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
- // Register Navigation
+ #region Register Basic Navigation
+ containerRegistry.RegisterForNavigation();
+ containerRegistry.RegisterForNavigation();
+
containerRegistry.RegisterForNavigation();
- containerRegistry.RegisterForNavigation();
- containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
- containerRegistry.RegisterForNavigation();
+ #endregion
+ #region Register Sequence Navigation
containerRegistry.RegisterForNavigation("SetUpProcess_WelcomePage");
//containerRegistry.RegisterForNavigation("SetUpProcess_ScanPage");
containerRegistry.RegisterForNavigation("AddServerProcess_LoginPasswordPage");
containerRegistry.RegisterForNavigation("AddServerProcess_HostSelectPage");
containerRegistry.RegisterForNavigation("AddServerProcess_LoginChoosePage");
+ #endregion
- //containerRegistry.RegisterForNavigation();
- // Register Dialog
+ #region Register Dialog
containerRegistry.RegisterDialog();
+ #endregion
- // Register Service
+ #region Register Service
containerRegistry.Register();
containerRegistry.Register();
containerRegistry.RegisterSingleton();
+ #endregion
}
}
}
diff --git a/Borepin/Borepin/Page/MachinePage.xaml b/Borepin/Borepin/Page/MachinePage.xaml
index c4a8201..10f3a98 100644
--- a/Borepin/Borepin/Page/MachinePage.xaml
+++ b/Borepin/Borepin/Page/MachinePage.xaml
@@ -21,9 +21,17 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Borepin/Borepin/Page/MainPage.xaml b/Borepin/Borepin/Page/MainPage.xaml
index 7d56fd9..0e4259a 100644
--- a/Borepin/Borepin/Page/MainPage.xaml
+++ b/Borepin/Borepin/Page/MainPage.xaml
@@ -5,7 +5,7 @@
x:Name="page">
-
+
diff --git a/Borepin/Borepin/PageModel/MachinePageModel.cs b/Borepin/Borepin/PageModel/MachinePageModel.cs
index c624f01..3b898ae 100644
--- a/Borepin/Borepin/PageModel/MachinePageModel.cs
+++ b/Borepin/Borepin/PageModel/MachinePageModel.cs
@@ -25,6 +25,7 @@ namespace Borepin.PageModel
UseMachineCommand = new DelegateCommand(UseMachineCommandExecuted);
GiveBackMachineCommand = new DelegateCommand(GiveBackMachineCommandExecuted);
+ ForceFreeMachineCommand = new DelegateCommand(ForceFreeMachineCommandExecuted);
}
#endregion
@@ -85,12 +86,27 @@ namespace Borepin.PageModel
await inUseInterface.GiveBack();
await LoadData();
}
+
+ private ICommand _ForceFreeMachineCommand;
+ public ICommand ForceFreeMachineCommand
+ {
+ get => _ForceFreeMachineCommand;
+ set => SetProperty(ref _ForceFreeMachineCommand, value);
+ }
+
+ private async void ForceFreeMachineCommandExecuted()
+ {
+ Machine.IManageInterface manageInterface = _Machine.Manage;
+
+ await manageInterface.ForceFree();
+ await LoadData();
+ }
#endregion
#region INavigationService
public override void OnNavigatedFrom(INavigationParameters parameters)
{
-
+
}
public override void OnNavigatedTo(INavigationParameters parameters)
diff --git a/Borepin/Borepin/PageModel/ServerListPageModel.cs b/Borepin/Borepin/PageModel/ServerListPageModel.cs
index 20d7077..99d206b 100644
--- a/Borepin/Borepin/PageModel/ServerListPageModel.cs
+++ b/Borepin/Borepin/PageModel/ServerListPageModel.cs
@@ -93,7 +93,7 @@ namespace Borepin.PageModel
NavigationParameters parameters = new NavigationParameters
{
- { "instance", viewmodel.Instance }
+ { "instance", viewmodel._Instance }
};
INavigationResult result = await _NavigationService.NavigateAsync($"ServerPage", parameters);
diff --git a/Borepin/Borepin/PageModel/ServerPageModel.cs b/Borepin/Borepin/PageModel/ServerPageModel.cs
index 523f7b7..0c989fa 100644
--- a/Borepin/Borepin/PageModel/ServerPageModel.cs
+++ b/Borepin/Borepin/PageModel/ServerPageModel.cs
@@ -101,6 +101,13 @@ namespace Borepin.PageModel
}
IsConnected = true;
+
+ var result = await _NavigationService.NavigateAsync("/MainPage/NavigationPage/MachineListPage");
+
+ if (!result.Success)
+ {
+ System.Diagnostics.Debugger.Break();
+ }
}
IsBusy = false;
diff --git a/Borepin/Borepin/View/MachineListItemView.xaml b/Borepin/Borepin/View/MachineListItemView.xaml
index 07bd8a1..893c341 100644
--- a/Borepin/Borepin/View/MachineListItemView.xaml
+++ b/Borepin/Borepin/View/MachineListItemView.xaml
@@ -14,9 +14,9 @@
-
+
+
-
diff --git a/Borepin/Borepin/View/ServerListItemView.xaml b/Borepin/Borepin/View/ServerListItemView.xaml
index d956d40..d3cced6 100644
--- a/Borepin/Borepin/View/ServerListItemView.xaml
+++ b/Borepin/Borepin/View/ServerListItemView.xaml
@@ -9,15 +9,15 @@
-
+
-
-
+
+
diff --git a/Borepin/Borepin/ViewModel/ServerListItemViewModel.cs b/Borepin/Borepin/ViewModel/ServerListItemViewModel.cs
index d9ec40e..b4a26ed 100644
--- a/Borepin/Borepin/ViewModel/ServerListItemViewModel.cs
+++ b/Borepin/Borepin/ViewModel/ServerListItemViewModel.cs
@@ -1,28 +1,45 @@
using Borepin.Model;
using Prism.Mvvm;
+using System;
namespace Borepin.ViewModel
{
public class ServerListItemViewModel : BindableBase
{
+ #region Private Properties
+ public Connection _Instance { get; private set; }
+ #endregion
+
+ #region Constructors
public ServerListItemViewModel(Connection instance)
{
_Instance = instance;
- Address = instance.Address.ToString();
- }
-
- private Connection _Instance;
- public Connection Instance
- {
- get => _Instance;
- set => SetProperty(ref _Instance, value);
+ Address = ConvertUriToString(instance.Address);
+ Username = instance.Username;
}
+ #endregion
+ #region Properties
private string _Address;
public string Address
{
get => _Address;
set => SetProperty(ref _Address, value);
}
+
+ private string _Username;
+ public string Username
+ {
+ get => _Username;
+ set => SetProperty(ref _Username, value);
+ }
+ #endregion
+
+ #region Methods
+ public string ConvertUriToString(Uri uri)
+ {
+ return uri.Host;
+ }
+ #endregion
}
}
diff --git a/README.md b/README.md
index 68cca2e..f623a80 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ If Step 5. Build Borepin is failing because of GTKSharp, it could help to restar
## Build GTK Project
1. Install mono
[download mono](https://www.mono-project.com/download/stable/#download-lin)
-2. Install mono, gtk-sharp, msbuild, nuget
+2. Install mono, gtk-sharp, msbuild, nuget, capnproto
1.1 Debian based
```shell
$ apt install mono-complete, gtk-sharp2, libcanberra-gtk-module, nuget, capnproto, git
@@ -59,6 +59,23 @@ If Step 5. Build Borepin is failing because of GTKSharp, it could help to restar
```
You can also use Rider or monodevelop as an IDE for development on Borepin
+## macOS / iOS
+
+1. Install Visual Studio for Mac
+
+2. Install capnproto
+ If you install capnp with Homebrew you may have to symlink the capnp binary into '/usr/local/bin', or bring it into your PATH another way.
+
+3. Clone Borepin
+ ```shell
+ $ git clone https://gitlab.com/fabinfra/fabaccess/client.git --recurse-submodules
+ ```
+
+4. Open in Visual Studio
+
+5. Build
+
+
# UI
We use [Xamarin](https://dotnet.microsoft.com/apps/xamarin) for our UI Implementation.