internal WindowWin32(IntPtr hInstance, WindowConfiguration configuration) { this.className = configuration.ClassName; this.hInstance = hInstance; this.Mode = configuration.Mode; this.Title = configuration.Title; this.X = configuration.X; this.Y = configuration.Y; this.Width = configuration.Width; this.Height = configuration.Height; }
public static Window CreateWindow(IntPtr hInstance, WindowConfiguration configuration) { switch (Environment.OSVersion.Platform) { case PlatformID.Win32NT: return(new WindowWin32(hInstance, configuration)); default: throw new PlatformNotSupportedException(); } }