示例#1
0
        public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate)
        {
            _applicationDelegate = applicationDelegate;
            _windows             = new List <NSWindow>();

            _attributeTypesToShowMethodDictionary = new Dictionary <Type, Action <NSViewController, MvxBasePresentationAttribute, MvxViewModelRequest> >();

            RegisterAttributeTypes();
        }
        public AutoSuspendHelper(NSApplicationDelegate appDelegate)
        {
            Reflection.ThrowIfMethodsNotOverloaded("AutoSuspendHelper", appDelegate,
                                                   "ApplicationShouldTerminate", "DidFinishLaunching", "DidResignActive", "DidBecomeActive", "DidHide");

            RxApp.SuspensionHost.IsLaunchingNew     = Observable <Unit> .Never;
            RxApp.SuspensionHost.IsResuming         = isResuming;
            RxApp.SuspensionHost.IsUnpausing        = isUnpausing;
            RxApp.SuspensionHost.ShouldPersistState = shouldPersistState;

            var untimelyDemise = new Subject <Unit>();

            AppDomain.CurrentDomain.UnhandledException += (o, e) =>
                                                          untimelyDemise.OnNext(Unit.Default);

            RxApp.SuspensionHost.ShouldInvalidateState = untimelyDemise;
        }
示例#3
0
 public CustomViewPresenter(NSApplicationDelegate appDelegate, NSWindow window)
     : base(appDelegate, window)
 {
 }
 public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate, NSWindow window)
 {
     _applicationDelegate = applicationDelegate;
     _window = window;
 }
示例#5
0
 public void Initialize(NSApplicationDelegate appdelegate)
 {
     AppDelegate = appdelegate;
     Callback.OnInitialized(Widget, EventArgs.Empty);
 }
示例#6
0
 public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate, NSWindow window)
 {
     this._applicationDelegate = applicationDelegate;
     this._window = window;
 }
示例#7
0
 public MvxMultiRegionMacViewPresenter(NSApplicationDelegate appDelegate, NSWindow window)
     : base(appDelegate, window)
 {
 }
示例#8
0
 public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate)
 {
     _applicationDelegate = applicationDelegate;
     _windows             = new List <NSWindow>();
 }
 public static void SetCurrentApplication(NSApplicationDelegate value) => _current = value;
示例#10
0
 public void Initialize(NSApplicationDelegate appdelegate)
 {
     AppDelegate = appdelegate;
     Widget.OnInitialized(EventArgs.Empty);
 }
示例#11
0
 public MvxMacViewPresenter(NSApplicationDelegate applicationDelegate)
 {
     _applicationDelegate = applicationDelegate;
 }