Beispiel #1
0
        public void showEditor(UIView fromView)
        {
            CustomerInformationViewController customerSearch;

            popover = new UIPopoverController(new UINavigationController(customerSearch = new CustomerInformationViewController {
                Customer = Invoice.Customer,
                Created  = (c) => {
                    Invoice.Customer = c;
                    popover.Dismiss(true);
                    popover.Dispose();
                }
            })
            {
                NavigationBar =
                {
                    BarStyle = UIBarStyle.BlackTranslucent,
                }
            });
            customerSearch.Popover = popover;
            popover.PresentFromRect(fromView.Frame, tableView, UIPopoverArrowDirection.Right, true);
        }
Beispiel #2
0
 public void showEditor(UIView fromView)
 {
     CustomerInformationViewController customerSearch;
     popover = new UIPopoverController (new UINavigationController (customerSearch = new CustomerInformationViewController {
         Customer = Invoice.Customer,
         Created = (c) => {
             Invoice.Customer = c;
             popover.Dismiss (true);
             popover.Dispose ();
         }
     }) {
         NavigationBar = {
             BarStyle = UIBarStyle.BlackTranslucent,
         }
     });
     customerSearch.Popover = popover;
     popover.PresentFromRect (fromView.Frame, tableView, UIPopoverArrowDirection.Right, true);
 }