public static void DismissToFirstController(ControllerDelegate onDisappear, ControllerDelegate onDisappeared) { if (navigationController != null) { navigationController.dismissToFirstController(onDisappear, onDisappeared); } }
void Send() { if (navigationController != null) { if (dismissToFirstController) { navigationController.dismissToFirstController(); } else { navigationController.dismissController(); } } }