Exemple #1
0
        private void InfoButton_Click(object sender, RoutedEventArgs e)
        {
            HistoryListView.DataContext = null;
            //RaiseEvent(new RoutedEventArgs(HistoryDataClickEvent));
            List <Treatment> t = DB.findTreatmentsByPatientId(App.patient.Id);

            HistoryListView.ItemsSource     = t;
            HistoryFileListView.ItemsSource = null;
            navigateButton(Smile.NONE);
        }
        public HistoryControl()
        {
            InitializeComponent();
            DB = DentalSmileDBFactory.GetInstance();
            app = Application.Current as App;

            if (App.patient != null)
            {
                Treatments = DB.findTreatmentsByPatientId(App.patient.Id);
            }
            else
            {
                Treatments = DB.findTreatments();
            }

            DataContext = Treatments;
            navigateButton(Smile.REGISTERED);
        }
Exemple #3
0
        public HistoryControl()
        {
            InitializeComponent();
            DB  = DentalSmileDBFactory.GetInstance();
            app = Application.Current as App;

            if (App.patient != null)
            {
                Treatments = DB.findTreatmentsByPatientId(App.patient.Id);
            }
            else
            {
                Treatments = DB.findTreatments();
            }

            DataContext = Treatments;
            navigateButton(Smile.REGISTERED);
        }