public MatterDetail(SplitController split, Finder finder)
            : base(UITableViewStyle.Grouped, null, true)
        {
            this.split = split;
            this.finder = finder;

            //
            Autorotate = true;
            deviceType = DeviceTypeUtil.getDeviceType ();
            setButtons ();
            BuildInterface ();
            //
            var model = UIDevice.CurrentDevice.Model.ToString ();
            var name = UIDevice.CurrentDevice.Name.ToString ();
            RectangleF rec = UIScreen.MainScreen.Bounds;

            Console.WriteLine ("Device", "Name: " + name + " model: " + model + " Screen Width: " + rec.Width + " Height: " + rec.Height);
            //
            if (searchResult != null) {
                if (matter == null) {
                    GetMatterDetails ();
                } else {
                    enableButtons ();
                }

            }
        }
        //custom constructor
        public PagedViewController(SplitController splitController, Finder finder, MatterDetail matterDetail)
        {
            Console.WriteLine ("PagedViewController - loaded custom constructor");
            this.finder = finder;
            this.matterDetail = matterDetail;
            this.splitController = splitController;

            _scrollView.DecelerationEnded += HandleScrollViewDecelerationEnded;
            _pageControl.ValueChanged += HandlePageControlValueChanged;
            //
            _scrollViewP.DecelerationEnded += HandleScrollViewDecelerationEndedPortrait;
            _pageControlP.ValueChanged += HandlePageControlValueChangedPortrait;
        }
 public ProvisionDialog(SplitController split)
     : base(UITableViewStyle.Grouped, null)
 {
     this.split = split;
     Autorotate = true;
     //TODO - remove after test...
     //RemoveProperties ();
     //SetManualProperties ();
     if (isDeviceProvisioned ()) {
         startMatterSearch ();
     } else {
         buildInterface ();
     }
 }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            splitViewController = new SplitController ();
            window.RootViewController = splitViewController;

            if (isDeviceProvisioned ()) {
                startMatterMain ();
            } else {
                setUpActivation ();
            }

            window.RootViewController = splitViewController;
            window.MakeKeyAndVisible ();

            return true;
        }