Created
November 9, 2016 21:57
-
-
Save Svetomech/683b8b69e997edb414baa6abc1d8c703 to your computer and use it in GitHub Desktop.
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
public static class Populate | |
{ | |
public static Window[] FromHandles(string[] handles) | |
{ | |
var windows = new Window[handles.Length]; | |
for (int i = 0; i < windows.Length; ++i) | |
{ | |
windows[i] = new Window(new IntPtr(Convert.ToInt32(handles[i]))); | |
} | |
return windows; | |
} | |
public static Window[] FromHandles(IntPtr[] handles) | |
{ | |
var windows = new Window[handles.Length]; | |
for (int i = 0; i < windows.Length; ++i) | |
{ | |
windows[i] = new Window(handles[i]); | |
} | |
return windows; | |
} | |
} |
AxelUser
commented
Nov 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment