Example #1
0
 public MvxInterfaceControllerAdapter(IMvxEventSourceInterfaceController eventSource)
     : base(eventSource)
 {
     if (!(eventSource is IMvxWatchOSView))
     {
         throw new ArgumentException("eventSource", "eventSource should be a IMvxWatchOSView");
     }
 }
        public MvxBindingInterfaceControllerAdapter(IMvxEventSourceInterfaceController eventSource)
            : base(eventSource)
        {
            if (!(eventSource is IMvxWatchOSView))
                throw new ArgumentException("eventSource", "eventSource should be a IMvxWatchOSView");

            this.WatchOSView.BindingContext = new MvxBindingContext();
        }
        public MvxBindingInterfaceControllerAdapter(IMvxEventSourceInterfaceController eventSource)
            : base(eventSource)
        {
            if (!(eventSource is IMvxWatchOSView))
            {
                throw new ArgumentException("eventSource", "eventSource should be a IMvxWatchOSView");
            }

            this.WatchOSView.BindingContext = new MvxBindingContext();
        }
        public MvxBaseInterfaceControllerAdapter(IMvxEventSourceInterfaceController eventSource)
        {
            if (eventSource == null)
                throw new ArgumentException("eventSource - eventSource should not be null");

            if (!(eventSource is WKInterfaceController))
                throw new ArgumentException("eventSource - eventSource should be a WKInterfaceController");

            this._eventSource = eventSource;
            this._eventSource.AwakeCalled += this.HandleAwakeCalled;
            this._eventSource.DisposeCalled += this.HandleDisposeCalled;
        }
        public MvxBaseInterfaceControllerAdapter(IMvxEventSourceInterfaceController eventSource)
        {
            if (eventSource == null)
            {
                throw new ArgumentException("eventSource - eventSource should not be null");
            }

            if (!(eventSource is WKInterfaceController))
            {
                throw new ArgumentException("eventSource - eventSource should be a WKInterfaceController");
            }

            this._eventSource                = eventSource;
            this._eventSource.AwakeCalled   += this.HandleAwakeCalled;
            this._eventSource.DisposeCalled += this.HandleDisposeCalled;
        }
 public MvxInterfaceControllerAdapter(IMvxEventSourceInterfaceController eventSource)
     : base(eventSource)
 {
     if (!(eventSource is IMvxWatchOSView))
         throw new ArgumentException("eventSource", "eventSource should be a IMvxWatchOSView");
 }
Example #7
0
 public static void AdaptForBinding(this IMvxEventSourceInterfaceController view)
 {
     var adapter = new MvxInterfaceControllerAdapter(view);
     var binding = new MvxBindingInterfaceControllerAdapter(view);
 }