Sicherung

This commit is contained in:
Maier Stephan SI
2023-04-17 07:07:49 +02:00
parent f3f89b94f5
commit 1c68b8f401
1307 changed files with 7918 additions and 82491 deletions

View File

@@ -0,0 +1,44 @@
namespace FSI.BT.Tools.ClipboardMgt
{
using System;
using FSI.BT.Tools.Global.Utilities;
using FSI.BT.Tools.RadialMenu.Business;
using Microsoft.Win32;
using WK.Libraries.SharpClipboardNS;
/// <summary>
/// App contains the notifyicon, the taskbarform and the menus.
/// </summary>
internal class App : IDisposable
{
SharpClipboard _clipBoard;
public App()
{
AppRestart.BeforeRestarting += Dispose;
SystemEvents.DisplaySettingsChanged += SystemEvents_DisplaySettingsChanged;
_clipBoard = new SharpClipboard();
_clipBoard.ObservableFormats.Texts = true;
_clipBoard.ClipboardChanged += Clipboard_ClipboardChanged;
}
private void Clipboard_ClipboardChanged(object sender, SharpClipboard.ClipboardChangedEventArgs e)
{
var test = e.Content.ToString();
if (e.Content.ToString().StartsWith("\"") && e.Content.ToString().EndsWith("\""))
System.Windows.Forms.Clipboard.SetDataObject(e.Content.ToString().Substring(1, e.Content.ToString().Length - 2));
}
public void Dispose()
{
}
private void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e)
{
}
}
}