Created
June 13, 2017 14:33
-
-
Save jacricelli/4c5d37921b06c796effffed8fbb565d9 to your computer and use it in GitHub Desktop.
Implementación de IWin32Window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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