Exemple #1
0
 void OnEditorClosed(object sender, EventArgs args)
 {
     if (flight != null)
     {
         UpdateDetails();
     }
     editor = null;
 }
        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);
        }
Exemple #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);
        }
 void OnEditorClosed(object sender, EventArgs args)
 {
     editor = null;
 }
        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);
        }
        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);
        }
Exemple #11
0
 public EditFlightDetailsTableViewSource(EditFlightDetailsViewController editor) : base(editor)
 {
 }
Exemple #12
0
 public CrossCountryAlertDelegate(EditFlightDetailsViewController editor)
 {
     this.editor = editor;
 }
 void OnEditorClosed(object sender, EventArgs args)
 {
     editor = null;
 }
 void OnEditorClosed(object sender, EventArgs args)
 {
     UpdateDetails();
     editor = null;
 }
 public EditFlightDetailsTableViewSource(EditFlightDetailsViewController editor)
     : base(editor)
 {
 }