private void ViewAllButton_Click(object sender, RoutedEventArgs e) { InvoiceDG.ItemsSource = PlannerClass.GetAllInvoices(); ContractsPreInvouce.ItemsSource = null; }