div. Anpassungen
- Settings *.xml eingefügt - div. Anwendungen eingefügt - kleine Fehler behoben automatische zentrieren der Maus entfernt div. Anpassungen Squashed 'FSI.Lib/' changes from 24aa22a..9a24247 9a24247 Version erhöht 9536f8a div. Anpassungen für FSI.BT.Tools git-subtree-dir: FSI.Lib git-subtree-split: 9a242472bc63c937efcdaaa4e391c5733abe2891 div. Anpassungen div. Fehlerbehoben
This commit is contained in:
@@ -3,10 +3,6 @@ using NHotkey;
|
||||
using NHotkey.Wpf;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
using FSI.Lib.Wpf.ExtensionMethods;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System;
|
||||
|
||||
namespace FSI.BT.Tools
|
||||
{
|
||||
@@ -18,11 +14,18 @@ namespace FSI.BT.Tools
|
||||
private static readonly KeyGesture RadialMenu = new(Key.OemBackslash, ModifierKeys.Control);
|
||||
private static readonly KeyGesture TimeStamp = new(Key.C, ModifierKeys.Control | ModifierKeys.Alt);
|
||||
|
||||
public void InitApplication(object sender, StartupEventArgs e)
|
||||
public void Application_Startup(object sender, StartupEventArgs e)
|
||||
{
|
||||
|
||||
Global.Settings = new AppSettings(GetType().Namespace.ToString() + ".xml");
|
||||
Global.Settings.Load();
|
||||
|
||||
|
||||
Global.TaskbarIcon = (TaskbarIcon)FindResource("FSINotifyIcon");
|
||||
|
||||
Global.AdminRights = Admin.CheckAdminRight();
|
||||
Global.SuperAdminRights = Admin.CheckSuperAdminRight();
|
||||
Global.UserRights = Admin.CheckUserRight();
|
||||
|
||||
HotkeyManager.Current.AddOrReplace("RadialMenu", RadialMenu, ShowRadialMenu);
|
||||
|
||||
@@ -34,7 +37,9 @@ namespace FSI.BT.Tools
|
||||
private void ShowRadialMenu(object sender, HotkeyEventArgs e)
|
||||
{
|
||||
var cmd = new Commands.RadialMenuCommand();
|
||||
cmd.Execute(null);
|
||||
|
||||
if (cmd.CanExecute(null))
|
||||
cmd.Execute(null);
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
@@ -47,5 +52,9 @@ namespace FSI.BT.Tools
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void Application_Exit(object sender, ExitEventArgs e)
|
||||
{
|
||||
Global.Settings.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user