Esempio n. 1
0
        internal PlatformRenderer(Platform platform)
        {
            Platform = platform;
#pragma warning disable CS0618 // Type or member is obsolete
            View = new NSView(NSApplication.SharedApplication.Windows[0].Frame);
#pragma warning restore CS0618 // Type or member is obsolete
            _platformNavigation = new PlatformNavigation(this);
        }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (!_disposed)
         {
             _platformNavigation.Dispose();
             _platformNavigation = null;
             Platform            = null;
         }
         _disposed = true;
     }
     base.Dispose(disposing);
 }