public static CSWindow CreateCSWindow(Gdk.Window gdkWindow) { if (Platform.IsMac) { return(WindowHelp.CreateMac(gdkWindow)); } if (Platform.IsWindows) { return(WindowHelp.CreateWin32(gdkWindow)); } throw new NotImplementedException(); }
public static CSWindow CreateCSWindow(Gdk.Window gdkWindow) { CSWindow result; if (Platform.IsMac) { result = WindowHelp.CreateMac(gdkWindow); } else { if (!Platform.IsWindows) { throw new NotImplementedException(); } result = WindowHelp.CreateWin32(gdkWindow); } return(result); }