Exemplo n.º 1
0
 void OnEditorClosed(object sender, EventArgs args)
 {
     if (flight != null)
     {
         UpdateDetails();
     }
     editor = null;
 }
Exemplo n.º 2
0
        void OnAddClicked(object sender, EventArgs args)
        {
            if (editor != null || details.EditorEngaged)
            {
                return;
            }

            editor = new EditFlightDetailsViewController(new Flight(DateTime.Today), false);
            editor.EditorClosed += OnEditorClosed;

            details.NavigationController.PushViewController(editor, true);
        }
Exemplo n.º 3
0
        public void Edit(Flight flight, bool exists)
        {
            if (masterPopoverController != null)
            {
                masterPopoverController.Dismiss(true);
            }

            editor = new EditFlightDetailsViewController(flight, exists);
            editor.EditorClosed += OnEditorClosed;

            NavigationController.PushViewController(editor, true);
        }
        void OnEditClicked(object sender, EventArgs args)
        {
            Flight edit;
            bool   exists;

            if (Flight == null)
            {
                edit   = new Flight(DateTime.Today);
                exists = false;
            }
            else
            {
                edit   = Flight;
                exists = true;
            }

            editor = new EditFlightDetailsViewController(edit, exists);
            editor.EditorClosed += OnEditorClosed;

            NavigationController.PushViewController(editor, true);
        }
 public CrossCountryAlertDelegate(EditFlightDetailsViewController editor)
 {
     this.editor = editor;
 }
 void OnEditorClosed(object sender, EventArgs args)
 {
     UpdateDetails ();
     editor = null;
 }
        void OnEditClicked(object sender, EventArgs args)
        {
            Flight edit;
            bool exists;

            if (Flight == null) {
                edit = new Flight (DateTime.Today);
                exists = false;
            } else {
                edit = Flight;
                exists = true;
            }

            editor = new EditFlightDetailsViewController (edit, exists);
            editor.EditorClosed += OnEditorClosed;

            NavigationController.PushViewController (editor, true);
        }
Exemplo n.º 8
0
 void OnEditorClosed(object sender, EventArgs args)
 {
     editor = null;
 }
Exemplo n.º 9
0
        void OnAddClicked(object sender, EventArgs args)
        {
            if (editor != null || details.EditorEngaged)
                return;

            editor = new EditFlightDetailsViewController (new Flight (DateTime.Today), false);
            editor.EditorClosed += OnEditorClosed;

            details.NavigationController.PushViewController (editor, true);
        }
Exemplo n.º 10
0
        public void Edit(Flight flight, bool exists)
        {
            if (masterPopoverController != null)
                masterPopoverController.Dismiss (true);

            editor = new EditFlightDetailsViewController (flight, exists);
            editor.EditorClosed += OnEditorClosed;

            NavigationController.PushViewController (editor, true);
        }
Exemplo n.º 11
0
 public EditFlightDetailsTableViewSource(EditFlightDetailsViewController editor) : base(editor)
 {
 }
Exemplo n.º 12
0
 public CrossCountryAlertDelegate(EditFlightDetailsViewController editor)
 {
     this.editor = editor;
 }
Exemplo n.º 13
0
 void OnEditorClosed(object sender, EventArgs args)
 {
     editor = null;
 }
 void OnEditorClosed(object sender, EventArgs args)
 {
     UpdateDetails();
     editor = null;
 }
 public EditFlightDetailsTableViewSource(EditFlightDetailsViewController editor)
     : base(editor)
 {
 }