Exemple #1
0
 private void RefeshPendingTickets_Click(object sender, RoutedEventArgs e)
 {
     PlannerClass.PendingTickets.Clear();
     PlannerClass.PendingTickets  = PlannerClass.TicketsWithStatus_Populate(0);//0 is pending
     DGPendingTickets.ItemsSource = null;
     DGPendingTickets.ItemsSource = PlannerClass.PendingTickets;
 }
Exemple #2
0
        private void RefreshActiveTickets_Click(object sender, RoutedEventArgs e)
        {
            progresses.Clear();
            PlannerClass.ActiveTickets.Clear();
            PlannerClass.ActiveTickets = PlannerClass.TicketsWithStatus_Populate(1);

            foreach (FC_TripTicket c in PlannerClass.ActiveTickets)
            {
                FC_TripTicket_WProgress temp = new FC_TripTicket_WProgress(c);
                temp.GetTicketProgress(temp.instance);
                progresses.Add(temp);
            }
            DG5.ItemsSource = null;
            DG5.ItemsSource = progresses;
        }