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/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/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..d9b8462 100644
--- a/Borepin/Borepin/View/ServerListItemView.xaml
+++ b/Borepin/Borepin/View/ServerListItemView.xaml
@@ -9,7 +9,7 @@
-
+