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:
@@ -30,6 +30,8 @@ using C4IT.MultiLanguage;
|
||||
using C4IT.F4SD.TAPI;
|
||||
|
||||
using static C4IT.Logging.cLogManager;
|
||||
using F4SD.Gamification.Services;
|
||||
using F4SD.Gamification;
|
||||
|
||||
|
||||
namespace FasdDesktopUi
|
||||
@@ -48,6 +50,9 @@ namespace FasdDesktopUi
|
||||
LogMethodBegin(CM);
|
||||
try
|
||||
{
|
||||
GamificationService.Initialize();
|
||||
LevelService.LevelChanged += HandleLevelChanged;
|
||||
|
||||
#if isDemo
|
||||
cFasdCockpitCommunicationBase.Instance = new cFasdCockpitCommunicationDemo();
|
||||
#else
|
||||
@@ -91,6 +96,7 @@ namespace FasdDesktopUi
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
splashScreen?.Hide();
|
||||
LogMethodEnd(CM);
|
||||
}
|
||||
@@ -98,6 +104,20 @@ namespace FasdDesktopUi
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void HandleLevelChanged(object sender, LevelEventArgs e)
|
||||
{
|
||||
if (e.CurrentLevel <= 1 || !cFasdCockpitConfig.Instance.Global.UseGamification)
|
||||
return;
|
||||
|
||||
Dispatcher.CurrentDispatcher.Invoke(async () =>
|
||||
{
|
||||
Pages.LevelUpPage.LevelUpPage levelUpWindow = new Pages.LevelUpPage.LevelUpPage();
|
||||
levelUpWindow.NewLevel = e.CurrentLevel;
|
||||
levelUpWindow.LevelTitle = e.LevelTitle;
|
||||
levelUpWindow.Show();
|
||||
});
|
||||
}
|
||||
|
||||
public static bool ProcessCommandLine(string[] Args)
|
||||
{
|
||||
var CM = MethodBase.GetCurrentMethod();
|
||||
@@ -669,11 +689,11 @@ namespace FasdDesktopUi
|
||||
{
|
||||
userInfo = cFasdCockpitCommunicationBase.CockpitUserInfo;
|
||||
}
|
||||
if (cFasdCockpitConfig.Instance.HasM42Configuration())
|
||||
if (userInfo?.possibleLogons != null)
|
||||
{
|
||||
if (userInfo.possibleLogons.Contains(enumAdditionalAuthentication.M42WinLogon))
|
||||
{
|
||||
if (cFasdCockpitConfig.Instance.HasM42Configuration())
|
||||
if (userInfo?.possibleLogons != null)
|
||||
{
|
||||
if (userInfo.possibleLogons.Contains(enumAdditionalAuthentication.M42WinLogon))
|
||||
{
|
||||
if (App.M42OptionMenuItem != null)
|
||||
{
|
||||
App.M42OptionMenuItem.Visible = true;
|
||||
|
||||
Reference in New Issue
Block a user