Exemplo n.º 1
0
        private void DateSelected_DateSelected(object sender, DateChangedEventArgs e)
        {
            TimelinePulseViewModel timelinePulseView = new TimelinePulseViewModel();
            var date = dateSelected.Date.Day + "/" + dateSelected.Date.Month + "/" + dateSelected.Date.Year.ToString();

            timelinePulseView.LoadDataDate(date);
            BindingContext = timelinePulseView;
        }
Exemplo n.º 2
0
        public async Task BackButtonPressed(List <Item> ıtem)
        {
            TimelinePulseViewModel timelinePulseView = new TimelinePulseViewModel();

            var action = await DisplayAlert("Durum", "Etkinlik Tamamlandı mı ?", "Evet", "Hayır");

            if (action)
            {
                foreach (var item in ıtem)
                {
                    Item ıtemS = new Item();
                    ıtemS.Id = item.Id;
                    App.Database.DeleteItemAsync(ıtemS);
                    BindingContext = timelinePulseView;
                }
            }
        }
Exemplo n.º 3
0
        public TimelinePulseView()
        {
            InitializeComponent();
            BindingContext = new TimelinePulseViewModel();
            //BindingContext = App.Database.ToList();
            var x = DateTime.Now;

            lblDate.Text       = x.Day.ToString();
            lblDateString.Text = x.DayOfWeek.ToString();
            lblMonthYear.Text  = monthConverter(x.Month) + " " + x.Year.ToString();
            var itemS = App.Database.GetUserAsync().Result;

            foreach (var item in itemS)
            {
                lblName.Text = item.Name;
            }
        }
Exemplo n.º 4
0
        public TimelinePulseView()
        {
            InitializeComponent();

            BindingContext = new TimelinePulseViewModel();
        }