feat: expand cockpit integrations and support workflows
Add Phoenix remote desktop, action connector, documentation engine, and gamification support. Refactor support-case processing and search/action UI, and update installer assets and dependencies.
This commit is contained in:
@@ -1,23 +1,13 @@
|
||||
using System;
|
||||
using F4SD_AdaptableIcon.Enums;
|
||||
using FasdDesktopUi.Basics.Models;
|
||||
using FasdDesktopUi.Basics.UiActions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using C4IT.FASD.Base;
|
||||
using C4IT.Logging;
|
||||
using F4SD_AdaptableIcon.Enums;
|
||||
using FasdDesktopUi.Basics.Models;
|
||||
using static C4IT.Logging.cLogManager;
|
||||
using static FasdDesktopUi.Basics.UserControls.InformationClassSearchBar;
|
||||
|
||||
namespace FasdDesktopUi.Basics.UserControls
|
||||
{
|
||||
@@ -25,9 +15,12 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public event EventHandler<string> SearchValueChanged;
|
||||
public Action CloseButtonClickedAction { get; set; }
|
||||
public Action<bool> LockStatusChanged { get; set; }
|
||||
|
||||
public static QuickActionSelector Instance;
|
||||
|
||||
#region IsLocked DependencyProperty
|
||||
|
||||
public bool IsLocked
|
||||
@@ -49,7 +42,7 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
return;
|
||||
}
|
||||
|
||||
_me.CloseButton.IsEnabled = _me.IsLocked ? false : true;
|
||||
_me.CloseButton.IsEnabled = !_me.IsLocked;
|
||||
|
||||
}
|
||||
catch (Exception E)
|
||||
@@ -110,10 +103,13 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
public QuickActionSelector()
|
||||
{
|
||||
InitializeComponent();
|
||||
Search.ActivateManualSearch();
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public void BlurInvoker_IsActiveChanged(object sender, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
Search.IsInputEnabled = this.Visibility == Visibility.Visible;
|
||||
BlurInvoker.InvokeVisibilityChanged(this, new EventArgs());
|
||||
}
|
||||
|
||||
@@ -178,7 +174,7 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
|
||||
#region CloseButton
|
||||
|
||||
private void CloseButton_Click()
|
||||
public void CloseButton_Click()
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -187,9 +183,16 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
|
||||
QuickActionList = null;
|
||||
Visibility = Visibility.Collapsed;
|
||||
Search.IsEnabled = true;
|
||||
|
||||
if (CloseButtonClickedAction != null)
|
||||
CloseButtonClickedAction.Invoke();
|
||||
Window window = Window.GetWindow(this);
|
||||
if (window != null)
|
||||
{
|
||||
FocusManager.SetFocusedElement(window, window);
|
||||
Keyboard.Focus(window);
|
||||
}
|
||||
|
||||
CloseButtonClickedAction?.Invoke();
|
||||
}
|
||||
catch (Exception E)
|
||||
{
|
||||
@@ -217,6 +220,8 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
TempQuickActionSelectorHeading = null;
|
||||
QuickActionList = TempQuickActionList;
|
||||
TempQuickActionList = null;
|
||||
Search.IsEnabled = true;
|
||||
Search.FocusInput();
|
||||
}
|
||||
|
||||
private void BackButton_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
|
||||
@@ -230,5 +235,8 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void SearchBar_SearchValueChanged(object sender, string e)
|
||||
=> SearchValueChanged?.Invoke(this, e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user