public void SheetDidEndReturnCodeContextInfo(NSOpenPanel panel, NSInteger returnCode, IntPtr contextInfo) { this.modalDelegate(panel, returnCode, contextInfo); this.Autorelease(); }
public void OpenImageDidEndReturnCodeContextInfo(NSOpenPanel panel, NSInteger returnCode, IntPtr contextInfo) { if (returnCode == NSPanel.NSOKButton) { if (panel.Filenames.Count > 0) { ImageInfo image = ImageUtils.IICreateImage(NSURL.FileURLWithPath((panel.Filenames.ObjectAtIndex(0).CastTo<NSString>()))); this.imageView.Image = image; this.Reset(null); } } }
public void OpenPanelDidEndReturnCodeContextInfo(NSOpenPanel sheet, NSInteger returnCode, IntPtr contextInfo) { NSImage image = new NSImage(sheet.Filename).SafeAutorelease(); this.imageView.Image = image; this.ImageChanged(null); }