コード例 #1
0
 public void SheetDidEndReturnCodeContextInfo(NSOpenPanel panel, NSInteger returnCode, IntPtr contextInfo)
 {
     this.modalDelegate(panel, returnCode, contextInfo);
     this.Autorelease();
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: Monobjc/monobjc-samples
 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);
         }
     }
 }
コード例 #3
0
 public void OpenPanelDidEndReturnCodeContextInfo(NSOpenPanel sheet, NSInteger returnCode, IntPtr contextInfo)
 {
     NSImage image = new NSImage(sheet.Filename).SafeAutorelease();
     this.imageView.Image = image;
     this.ImageChanged(null);
 }