Skip to content

Instantly share code, notes, and snippets.

@jacricelli
Created June 13, 2017 14:33
Show Gist options
  • Save jacricelli/4c5d37921b06c796effffed8fbb565d9 to your computer and use it in GitHub Desktop.
Save jacricelli/4c5d37921b06c796effffed8fbb565d9 to your computer and use it in GitHub Desktop.
Implementación de IWin32Window
namespace App.UI
{
using System;
using System.Windows.Forms;
/// <summary>
/// Implementación de <see cref="IWin32Window"/>.
/// </summary>
internal class Win32Window : IWin32Window
{
private IntPtr handle;
/// <summary>
/// Inicializa una nueva instancia de la clase <see cref="Win32Window"/>.
/// </summary>
/// <param name="window">Instancia de un objeto de tipo <see cref="IWin32Window"/>.</param>
public Win32Window(IWin32Window window)
{
handle = window.Handle;
}
/// <inheritdoc/>
IntPtr IWin32Window.Handle => handle;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment