Ejemplo n.º 1
0
void menu_picked(int index, void* context) {
	show_loading();

	switch(index) {
		case 0:
			window_stack_pop(true);
			init_notification_list_window();
			break;
	}
}
Ejemplo n.º 2
0
void switchWindow(uint8_t newWindow)
{
	switch(newWindow) {
		case WINDOW_MAIN_MENU:
			curWindow = WINDOW_MAIN_MENU;
			init_menu_window();
			break;

		case WINDOW_BIKE_LIST:
			curWindow = WINDOW_BIKE_LIST;
			init_notification_list_window();
		 	break;
	}
}
void menu_data_received(int packetId, DictionaryIterator* data)
{
	switch (packetId)
	{
	case 0:
		show_quit();
		notification_window_init(true);
		notification_received_data(packetId, data);
		break;
	case 2:
		window_stack_pop(true);
		init_notification_list_window();
		list_data_received(packetId, data);
		break;
	case 3:
		show_menu();
		break;
	}
}