15 lines
393 B
C#
15 lines
393 B
C#
using System;
|
|
using System.Windows.Media;
|
|
using HandyControl.Data;
|
|
|
|
namespace HandyControl.Controls;
|
|
|
|
public class Screenshot
|
|
{
|
|
public static event EventHandler<FunctionEventArgs<ImageSource>> Snapped;
|
|
|
|
public void Start() => new ScreenshotWindow(this).Show();
|
|
|
|
internal void OnSnapped(ImageSource source) => Snapped?.Invoke(this, new FunctionEventArgs<ImageSource>(source));
|
|
}
|