Esempio n. 1
0
        public TodoList()
        {
            InitializeComponent();

            manager = TodoItemManager.DefaultManager;

            if (manager.IsOfflineEnabled && (Device.RuntimePlatform == Device.UWP))
            {
                var syncButton = new Button
                {
                    Text          = "Sync items",
                    HeightRequest = 30
                };
                syncButton.Clicked += OnSyncItems;

                buttonsPanel.Children.Add(syncButton);
            }
        }
		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);
			}
		}
		public TodoList()
		{
			InitializeComponent();

			manager = TodoItemManager.DefaultManager;

			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);
			}
		}
Esempio n. 4
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);
            }
        }
		public TodoList()
		{
			InitializeComponent();

			manager = TodoItemManager.DefaultManager;
		}
Esempio n. 6
0
        public TodoList()
        {
            InitializeComponent();

            manager = TodoItemManager.DefaultManager;
        }