Esempio n. 1
0
        public App(string platform = null)
        {
            Platform = platform;

            // The root page of your application
            MainPage = new TodoListView();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 4
0
	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 );
		}
	}