示例#1
0
        public TodoItemDetailsView(TodoItem todoItem, TodoItemManager manager)
        {
            InitializeComponent();
            this.Title = todoItem.Name;

            this.TodoItem = todoItem;
            this.manager  = manager;

            this.Images         = new ObservableCollection <TodoItemImage>();
            this.BindingContext = this;
        }
示例#2
0
        public TodoList()
        {
            InitializeComponent();

            manager = TodoItemManager.DefaultManager;

            // OnPlatform<T> doesn't currently support the "Windows" target platform, so we have this check here.
            if (manager.IsOfflineEnabled &&
                (Device.OS == TargetPlatform.Windows || Device.OS == TargetPlatform.WinPhone))
            {
                var syncButton = new Button
                {
                    Text          = "Sync items",
                    HeightRequest = 30
                };
                syncButton.Clicked += OnSyncItems;

                buttonsPanel.Children.Add(syncButton);
            }
        }
示例#3
0
 public TodoItemFileSyncHandler(TodoItemManager itemManager)
 {
     this.todoItemManager = itemManager;
 }