/// <summary> /// Call on navigated , initializate the view and set sources for list views /// </summary> /// <param name="e"></param> protected override void OnNavigatedTo(NavigationEventArgs e) { if (e.Parameter == null) { //ViewModel = new CreateAppointmentViewModel(); } else { ViewModel = new CreateAppointmentViewModel(); ViewModel.SetCustomer(((NewPaymentData)e.Parameter).CustomerId); } //Customer Test = new Customer("12234543-k", "Marco Antonio", "Perez Gonzales", "03/03/1978 00:00:00", "Los leons 29", // "Valpariso", "Valparaiso", "Chile", "gh567", "0983442233", "02122222", DateTime.Now, "Sin alergias"); // ViewModel.Customer = Test; av = new ApointmetsView(); ScrollViewer sv = new ScrollViewer(); sv.Content = av; SlotPickSP.Children.Add(sv); av.OnEmptySlotTapped += Av_OnEmptySlotTapped; CalDate.Date = DateTime.Now; ShowAppointments(); CalDate.DateChanged += CalDate_DateChanged; }
public ViewWeekAppointments() { this.InitializeComponent(); ApointmetsView ap = new ApointmetsView(); Main.Children.Add(ap); //ap.AddApointment(new List<int>() { 1,2,3},"Maria",1); }
private void ReloadView() { SlotPickSP.Children.RemoveAt(0); av = new ApointmetsView(); ScrollViewer sv = new ScrollViewer(); sv.Content = av; SlotPickSP.Children.Add(sv); //ad tap event av.OnUsedSlotTapped += Av_OnUsedSlotTapped; ShowAppointments(); }
private void CalDate_DateChanged(CalendarDatePicker sender, CalendarDatePickerDateChangedEventArgs args) { SlotPickSP.Children.RemoveAt(0); av = new ApointmetsView(); ScrollViewer sv = new ScrollViewer(); sv.Content = av; SlotPickSP.Children.Add(sv); av.OnEmptySlotTapped += Av_OnEmptySlotTapped; // CalDate.Date = DateTime.Now; ShowAppointments(); }
public AllAppointmentsView() { this.InitializeComponent(); //add appointment view av = new ApointmetsView(); ScrollViewer sv = new ScrollViewer(); sv.Content = av; SlotPickSP.Children.Add(sv); // Set date to today CalDate.Date = DateTime.Now; CalDate.DateChanged += CalDate_DateChanged; ShowAppointments(); //add on clicl to av av.OnUsedSlotTapped += Av_OnUsedSlotTapped; }