Beispiel #1
0
 public static CSWindow CreateCSWindow(Gdk.Window gdkWindow)
 {
     if (Platform.IsMac)
     {
         return(WindowHelp.CreateMac(gdkWindow));
     }
     if (Platform.IsWindows)
     {
         return(WindowHelp.CreateWin32(gdkWindow));
     }
     throw new NotImplementedException();
 }
Beispiel #2
0
        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);
        }