Neuerstellung
This commit is contained in:
26
FSI.BT.Tools/Commands/TimeStampToClipboardCommand.cs
Normal file
26
FSI.BT.Tools/Commands/TimeStampToClipboardCommand.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Windows.Controls.Primitives;
|
||||
|
||||
namespace FSI.BT.Tools.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Shows the main window.
|
||||
/// </summary>
|
||||
public class TimeStampToClipboardCommand : CommandBase<TimeStampToClipboardCommand>
|
||||
{
|
||||
public override void Execute(object parameter)
|
||||
{
|
||||
System.Windows.Forms.Clipboard.SetDataObject(Global.Settings.General.TimeStampFormat);
|
||||
var balloon = new ToolTip()
|
||||
{
|
||||
BalloonText = "Zeitstempel",
|
||||
BalloonDesc = "Der aktuelle Zeitstempel wurde in die Zwischenablage kopiert."
|
||||
};
|
||||
Global.TaskbarIcon.ShowCustomBalloon(balloon, PopupAnimation.Slide, 2000);
|
||||
}
|
||||
|
||||
public override bool CanExecute(object parameter)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user