static void GetImageSize_cb(IntPtr inst, out int width, out int height) { try { IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor; __obj.GetImageSize(out width, out height); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static void GetImagePosition_cb(IntPtr inst, out int x, out int y, int coord_type) { try { IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor; __obj.GetImagePosition(out x, out y, (Atk.CoordType)coord_type); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public ImageAdapter(IImageImplementor implementor) { if (implementor == null) { throw new ArgumentNullException("implementor"); } else if (!(implementor is GLib.Object)) { throw new ArgumentException("implementor must be a subclass of GLib.Object"); } this.implementor = implementor as GLib.Object; }
static IntPtr GetImageLocale_cb(IntPtr inst) { try { IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor; string __result; __result = __obj.ImageLocale; return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool SetImageDescription_cb(IntPtr inst, IntPtr description) { try { IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor; bool __result; __result = __obj.SetImageDescription(GLib.Marshaller.Utf8PtrToString(description)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
/// <summary> /// Создает новую модель изображения. /// </summary> /// <param name="services"> Фасад сервисов </param> /// <param name="implementor"> Имплементатор </param> public Image(ServiceFacade services, IImageImplementor implementor) { _services = services; _implementor = implementor; }
public void Delete(IImageImplementor image) { _context.DeleteObject(image); _context.SaveChanges(); }
public ImageAdapter (IImageImplementor implementor) { if (implementor == null) throw new ArgumentNullException ("implementor"); else if (!(implementor is GLib.Object)) throw new ArgumentException ("implementor must be a subclass of GLib.Object"); this.implementor = implementor as GLib.Object; }