public App(string platform = null) { Platform = platform; // The root page of your application MainPage = new TodoListView(); }
public App() { InitializeComponent(); _todoListManager = new TodoListManager(); _todoListViewModel = new TodoListViewModel(_todoListManager); MainPage = new TodoListView { BindingContext = _todoListViewModel }; DependencyService.Register <ViewModels.Services.IMessageService, Views.Services.MessageService>(); }
public async Task <TodoList> Query(TodoListById query) { TodoListView view = await _store.FindByIdAsync(query.ListId); var list = new TodoList { ListId = view.Id, Title = view.Title, OwnerId = view.OwnerId }; return(list); }
void CreateGuiSectionObjects() { if( AddItemGui == null ) { AddItemGui = new TodoListAddItem( this ); } if( ConnectionGui == null ) { ConnectionGui = new TodoListConnection( this ); } if( ViewGui == null ) { ViewGui = new TodoListView( this ); } if( StatisticsGui == null ) { StatisticsGui = new TodoListStatistics( this ); } if( AboutGui == null ) { AboutGui = new TodoListAbout( this ); } if( SettingsGui == null ) { SettingsGui = new TodoListSettings( this ); } if( SprintsGui == null ) { SprintsGui = new TodoListSprints( this ); } }