예제 #1
0
        public override void OpenDialog(UIBarButtonItem aBarButtonItem)
        {
            if (iOptionDialog == null)
            {
                iOptionDialog = new OptionDialogIphone(iViewController, iHelper, kManualUri, KinskyTouch.Properties.ResourceManager.Icon);
            }

            iOptionDialog.Open();
        }
예제 #2
0
        public override void OpenDialog(UIBarButtonItem aBarButtonItem)
        {
            if (iOptionDialog == null)
            {
                iOptionDialog = new OptionDialogIphone(iViewController, 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();
            iOptionDialog.NavigationController.ToolbarHidden = NotificationView.Instance.Current == null;
            iOptionDialog.NavigationController.TopViewController.SetToolbarItems(new UIBarButtonItem[] { getKazooButton }, false);
        }