void OnEditorClosed(object sender, EventArgs args) { if (aircraft != null) { UpdateDetails(); } editor = null; }
public void Edit(Aircraft aircraft, bool exists) { if (masterPopoverController != null) { masterPopoverController.Dismiss(true); } editor = new EditAircraftDetailsViewController(aircraft, exists); editor.EditorClosed += OnEditorClosed; NavigationController.PushViewController(editor, true); }
void OnAddClicked(object sender, EventArgs args) { if (editor != null || details.EditorEngaged) { return; } editor = new EditAircraftDetailsViewController(new Aircraft(), false); editor.EditorClosed += OnEditorClosed; details.NavigationController.PushViewController(editor, true); }
void OnEditClicked(object sender, EventArgs args) { Aircraft edit; bool exists; if (Aircraft == null) { edit = new Aircraft(); exists = false; } else { edit = Aircraft; exists = true; } editor = new EditAircraftDetailsViewController(edit, exists); editor.EditorClosed += OnEditorClosed; NavigationController.PushViewController(editor, true); }
public void Edit(Aircraft aircraft, bool exists) { if (masterPopoverController != null) masterPopoverController.Dismiss (true); editor = new EditAircraftDetailsViewController (aircraft, exists); editor.EditorClosed += OnEditorClosed; NavigationController.PushViewController (editor, true); }
void OnEditorClosed(object sender, EventArgs args) { if (aircraft != null) UpdateDetails (); editor = null; }
void OnEditorClosed(object sender, EventArgs args) { UpdateDetails(); editor = null; }
void OnEditorClosed(object sender, EventArgs args) { editor = null; }
void OnEditorClosed(object sender, EventArgs args) { UpdateDetails (); editor = null; }
void OnEditClicked(object sender, EventArgs args) { Aircraft edit; bool exists; if (Aircraft == null) { edit = new Aircraft (); exists = false; } else { edit = Aircraft; exists = true; } editor = new EditAircraftDetailsViewController (edit, exists); editor.EditorClosed += OnEditorClosed; NavigationController.PushViewController (editor, true); }
void OnAddClicked(object sender, EventArgs args) { if (editor != null || details.EditorEngaged) return; editor = new EditAircraftDetailsViewController (new Aircraft (), false); editor.EditorClosed += OnEditorClosed; details.NavigationController.PushViewController (editor, true); }