Esempio n. 1
0
        public override void OpenDialog(UIBarButtonItem aBarButtonItem)
        {
            if (iOptionDialog == null)
            {
                iOptionDialog = new OptionDialogIpad(iHelper, kManualUri, KinskyTouch.Properties.ResourceManager.Icon);
            }

            iOptionDialog.Open(aBarButtonItem);
        }
Esempio n. 2
0
        public override void OpenDialog(UIBarButtonItem aBarButtonItem)
        {
            if (iOptionDialog == null)
            {
                iOptionDialog = new OptionDialogIpad(iHelper, kManualUri, KinskyTouch.Properties.ResourceManager.Icon);
            }

            var getKazooButton = new UIBarButtonItem("Try Linn's latest control app", UIBarButtonItemStyle.Bordered, new EventHandler((s, e) =>
            {
                iOptionDialog.NavigationController.DismissViewController(true, null);
                NotificationView.Instance.ShowCurrent();
            }));

            iOptionDialog.Open(aBarButtonItem);
            iOptionDialog.NavigationController.ToolbarHidden = NotificationView.Instance.Current == null;
            iOptionDialog.NavigationController.TopViewController.SetToolbarItems(new UIBarButtonItem[] { getKazooButton }, false);
        }