diff --git a/BrickController2/BrickController2/Resources/TranslationResources.resx b/BrickController2/BrickController2/Resources/TranslationResources.resx
index b3c09242..86139c1a 100644
--- a/BrickController2/BrickController2/Resources/TranslationResources.resx
+++ b/BrickController2/BrickController2/Resources/TranslationResources.resx
@@ -120,21 +120,36 @@
About
+
+ Add a new controller event
+
Add controller events
+
+ Add a new controller profile
+
Add controller profiles
+
+ Add a new control point
+
Add control points
+
+ Add a new creation
+
Add creations
Address
+
+ Add a new sequence
+
Add sequences
@@ -228,6 +243,9 @@
Connecting to:
+
+ Connect to the device
+
Controller
@@ -276,6 +294,9 @@
Default profile
+
+ Delete the control point
+
Deleting...
@@ -306,6 +327,9 @@
Duration (ms)
+
+ Edit the sequence
+
Enter the control point duration between 300 and 10000 ms.
@@ -381,6 +405,9 @@
Import successful:
+
+ Import the creation
+
Information
@@ -492,6 +519,9 @@
Saving...
+
+ Scan for devices
+
Scan for devices before adding controller events!
@@ -534,6 +564,9 @@
Settings
+
+ Set up the channel
+
Share
diff --git a/BrickController2/BrickController2/UI/Pages/ControllerActionPage.xaml b/BrickController2/BrickController2/UI/Pages/ControllerActionPage.xaml
index a1a189cf..cdfe1495 100644
--- a/BrickController2/BrickController2/UI/Pages/ControllerActionPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/ControllerActionPage.xaml
@@ -43,7 +43,7 @@
-
+
@@ -90,7 +90,7 @@
-
+
@@ -185,7 +185,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/ControllerProfilePage.xaml b/BrickController2/BrickController2/UI/Pages/ControllerProfilePage.xaml
index 0c06c559..36b4975e 100644
--- a/BrickController2/BrickController2/UI/Pages/ControllerProfilePage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/ControllerProfilePage.xaml
@@ -40,7 +40,7 @@
-
+
@@ -107,7 +107,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/CreationListPage.xaml b/BrickController2/BrickController2/UI/Pages/CreationListPage.xaml
index e279ec70..198683de 100644
--- a/BrickController2/BrickController2/UI/Pages/CreationListPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/CreationListPage.xaml
@@ -53,9 +53,9 @@
-
+
-
+
@@ -113,7 +113,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/CreationPage.xaml b/BrickController2/BrickController2/UI/Pages/CreationPage.xaml
index bb749fc3..1790ca2e 100644
--- a/BrickController2/BrickController2/UI/Pages/CreationPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/CreationPage.xaml
@@ -35,7 +35,7 @@
-
+
@@ -62,7 +62,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/CreationScannerPage.xaml b/BrickController2/BrickController2/UI/Pages/CreationScannerPage.xaml
index 994622e6..69949f4a 100644
--- a/BrickController2/BrickController2/UI/Pages/CreationScannerPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/CreationScannerPage.xaml
@@ -32,7 +32,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/DeviceListPage.xaml b/BrickController2/BrickController2/UI/Pages/DeviceListPage.xaml
index 554f732c..8b5375ba 100644
--- a/BrickController2/BrickController2/UI/Pages/DeviceListPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/DeviceListPage.xaml
@@ -55,7 +55,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/DevicePage.xaml b/BrickController2/BrickController2/UI/Pages/DevicePage.xaml
index ce79bf26..4b79e2db 100644
--- a/BrickController2/BrickController2/UI/Pages/DevicePage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/DevicePage.xaml
@@ -124,7 +124,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/SequenceEditorPage.xaml b/BrickController2/BrickController2/UI/Pages/SequenceEditorPage.xaml
index e7cd792d..5e56a047 100644
--- a/BrickController2/BrickController2/UI/Pages/SequenceEditorPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/SequenceEditorPage.xaml
@@ -91,7 +91,7 @@
-
+
@@ -104,7 +104,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/Pages/SequenceListPage.xaml b/BrickController2/BrickController2/UI/Pages/SequenceListPage.xaml
index 4527eea3..1387892d 100644
--- a/BrickController2/BrickController2/UI/Pages/SequenceListPage.xaml
+++ b/BrickController2/BrickController2/UI/Pages/SequenceListPage.xaml
@@ -47,9 +47,9 @@
-
+
-
+
@@ -60,7 +60,7 @@
-
+
diff --git a/BrickController2/BrickController2/UI/ViewModels/ControllerProfilePageViewModel.cs b/BrickController2/BrickController2/UI/ViewModels/ControllerProfilePageViewModel.cs
index 7dd5f1e4..3d39cd68 100644
--- a/BrickController2/BrickController2/UI/ViewModels/ControllerProfilePageViewModel.cs
+++ b/BrickController2/BrickController2/UI/ViewModels/ControllerProfilePageViewModel.cs
@@ -51,7 +51,7 @@ public ControllerProfilePageViewModel(
RenameProfileCommand = new SafeCommand(async () => await RenameControllerProfileAsync());
AddControllerEventCommand = new SafeCommand(async () => await AddControllerEventAsync());
PlayCommand = new SafeCommand(async () => await PlayAsync());
- ControllerActionTappedCommand = new SafeCommand(async controllerActionViewModel => await NavigationService.NavigateToAsync(new NavigationParameters(("controlleraction", controllerActionViewModel.ControllerAction))));
+ ControllerActionTappedCommand = new SafeCommand(ShowActionAsync);
DeleteControllerEventCommand = new SafeCommand(async controllerEvent => await DeleteControllerEventAsync(controllerEvent));
DeleteControllerActionCommand = new SafeCommand(async controllerAction => await DeleteControllerActionAsync(controllerAction));
@@ -234,6 +234,26 @@ await _dialogService.ShowProgressDialogAsync(
{
}
}
+ private async Task ShowActionAsync(ControllerActionViewModel controllerActionViewModel)
+ {
+ try
+ {
+ if (_deviceManager.Devices?.Count == 0)
+ {
+ await _dialogService.ShowMessageBoxAsync(
+ Translate("Warning"),
+ Translate("MissingDevices"),
+ Translate("Ok"),
+ _disappearingTokenSource.Token);
+ return;
+ }
+
+ await NavigationService.NavigateToAsync(new NavigationParameters(("controlleraction", controllerActionViewModel.ControllerAction)));
+ }
+ catch (OperationCanceledException)
+ {
+ }
+ }
private async Task PlayAsync()
{