예제 #1
0
 public INetworkBackingStore CreateNetworkBackingStore(Guid id, BackingStoreType type)
 {
     INetworkBackingStore store = null;
     if (type == BackingStoreType.InMemory)
     {
         store = new NetworkBackingStore(id);
     }
     else
     {
         throw new NotImplementedException(string.Format("BackingStoreType {0} not yet implemented", type));
     }
     return store;
 }
예제 #2
0
파일: Window.cs 프로젝트: mono/cocoa-sharp
 public Window(Rect rect, WindowStyle stylemask, BackingStoreType backingstore, bool defer)
 {
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeClass.ToIntPtr (), "alloc", typeof (IntPtr));
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeObject, "initWithContentRect:styleMask:backing:defer:", typeof (IntPtr), typeof (Rect), rect, typeof (int), stylemask, typeof (int), backingstore, typeof (bool), defer);
 }
예제 #3
0
 public Window(Rect rect, WindowStyle stylemask, BackingStoreType backingstore, bool defer)
 {
     NativeObject = (IntPtr)ObjCMessaging.objc_msgSend(NativeClass.ToIntPtr(), "alloc", typeof(IntPtr));
     NativeObject = (IntPtr)ObjCMessaging.objc_msgSend(NativeObject, "initWithContentRect:styleMask:backing:defer:", typeof(IntPtr), typeof(Rect), rect, typeof(int), stylemask, typeof(int), backingstore, typeof(bool), defer);
 }