From b5ec48498f23372adb9ec9a3793de2a2303d8a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 20 Sep 2021 14:53:22 +0200 Subject: [PATCH] SEBWIN-516: Disabled message input when hand is raised. --- .../Controls/ActionCenter/RaiseHandControl.xaml.cs | 2 ++ .../Controls/Taskbar/RaiseHandControl.xaml.cs | 2 ++ .../Controls/ActionCenter/RaiseHandControl.xaml.cs | 2 ++ .../Controls/Taskbar/RaiseHandControl.xaml.cs | 2 ++ 4 files changed, 8 insertions(+) diff --git a/SafeExamBrowser.UserInterface.Desktop/Controls/ActionCenter/RaiseHandControl.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/Controls/ActionCenter/RaiseHandControl.xaml.cs index 2588fa54..3fea30db 100644 --- a/SafeExamBrowser.UserInterface.Desktop/Controls/ActionCenter/RaiseHandControl.xaml.cs +++ b/SafeExamBrowser.UserInterface.Desktop/Controls/ActionCenter/RaiseHandControl.xaml.cs @@ -102,6 +102,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.ActionCenter private void ShowLowered() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringRaiseHand); + Message.IsEnabled = true; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered); TextBlock.Text = "L"; } @@ -109,6 +110,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.ActionCenter private void ShowRaised() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringLowerHand); + Message.IsEnabled = false; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandRaised); TextBlock.Text = "R"; } diff --git a/SafeExamBrowser.UserInterface.Desktop/Controls/Taskbar/RaiseHandControl.xaml.cs b/SafeExamBrowser.UserInterface.Desktop/Controls/Taskbar/RaiseHandControl.xaml.cs index f60cebc5..2e613f9b 100644 --- a/SafeExamBrowser.UserInterface.Desktop/Controls/Taskbar/RaiseHandControl.xaml.cs +++ b/SafeExamBrowser.UserInterface.Desktop/Controls/Taskbar/RaiseHandControl.xaml.cs @@ -111,6 +111,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.Taskbar private void ShowLowered() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringRaiseHand); + Message.IsEnabled = true; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered); TextBlock.Text = "L"; } @@ -118,6 +119,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.Taskbar private void ShowRaised() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringLowerHand); + Message.IsEnabled = false; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandRaised); TextBlock.Text = "R"; } diff --git a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenter/RaiseHandControl.xaml.cs b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenter/RaiseHandControl.xaml.cs index b1e4dba4..5720dcdd 100644 --- a/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenter/RaiseHandControl.xaml.cs +++ b/SafeExamBrowser.UserInterface.Mobile/Controls/ActionCenter/RaiseHandControl.xaml.cs @@ -102,6 +102,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.ActionCenter private void ShowLowered() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringRaiseHand); + Message.IsEnabled = true; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered); TextBlock.Text = "L"; } @@ -109,6 +110,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.ActionCenter private void ShowRaised() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringLowerHand); + Message.IsEnabled = false; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandRaised); TextBlock.Text = "R"; } diff --git a/SafeExamBrowser.UserInterface.Mobile/Controls/Taskbar/RaiseHandControl.xaml.cs b/SafeExamBrowser.UserInterface.Mobile/Controls/Taskbar/RaiseHandControl.xaml.cs index 67554b61..a3748dd0 100644 --- a/SafeExamBrowser.UserInterface.Mobile/Controls/Taskbar/RaiseHandControl.xaml.cs +++ b/SafeExamBrowser.UserInterface.Mobile/Controls/Taskbar/RaiseHandControl.xaml.cs @@ -111,6 +111,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.Taskbar private void ShowLowered() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringRaiseHand); + Message.IsEnabled = true; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered); TextBlock.Text = "L"; } @@ -118,6 +119,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.Taskbar private void ShowRaised() { HandButtonText.Text = text.Get(TextKey.Notification_ProctoringLowerHand); + Message.IsEnabled = false; NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandRaised); TextBlock.Text = "R"; }