Пример #1
0
        public DentalChartPreviewViewModel()
        {
            DentalChartViewModel = new DentalChartViewModel()
            {
                TreatmentRecordViewModel = null
            };

            Outputs = new List <string>()
            {
                "Decayed (Caries Indicated For Filling)",
                "Missing Due To Caries",
                "Filled",
                "Caries Indicated For Extraction",
                "Root Fragment",
                "Missing Due To Other Causes",
                "Impacted Tooth",
                "Jacket Crown",
                "Amalgam Filling",
                "Abutment",
                "Pontic",
                "Inlay",
                "Fixed Cure Composite",
                "Removable Denture",
                "Extraction Due To Caries",
                "Extraction Due To Other Causes",
                "Present Teeth",
                "Congenitally Missing",
                "Supernumerary"
            };

            UpdateCommand = new DelegateCommand(new Action(update));
        }
Пример #2
0
        public AddOperationViewModel()
        {
            operation            = new Operation();
            dentalChartViewModel = new DentalChartViewModel()
            {
                TreatmentRecordViewModel = null
            };
            copyOperation = (Operation)operation.Clone();

            AddCommand    = new DelegateCommand(new Action(addTooth));
            RemoveCommand = new DelegateCommand(new Action(removeTooth));
            ClearCommand  = new DelegateCommand(new Action(clearTeeth));

            MedicineViewModel = new MedicineViewModel();
            MedicineViewModel.LoadMedicines();

            ProviderViewModel = new ProviderViewModel();
            ProviderViewModel.LoadProviders();

            AddItemCommand    = new DelegateCommand(AddItem);
            RemoveItemCommand = new DelegateCommand(RemoveItem);
            ClearItemsCommad  = new DelegateCommand(ClearItems);

            Consumables         = new List <ConsumableItem>();
            AddBillingViewModel = new AddBillingViewModel();

            AllPermanentCommand   = new DelegateCommand(AllPermanent);
            UpperPermanentCommand = new DelegateCommand(UpperPermanent);
            LowerPermanentCommand = new DelegateCommand(LowerPermanent);
            AllTemporaryCommand   = new DelegateCommand(AllTemporary);
            UpperTemporaryCommand = new DelegateCommand(UpperTemporary);
            LowerTemporaryCommand = new DelegateCommand(LowerTemporary);
            DeselectCommand       = new DelegateCommand(Deselect);
        }
Пример #3
0
        public AddAppointmentViewModel()
        {
            dentalChartViewModel = new DentalChartViewModel();
            dentalChartViewModel.TreatmentRecordViewModel = null;

            PatientViewModel   = new PatientViewModel();
            TreatmentViewModel = new TreatmentViewModel();
            UserViewModel      = new UserViewModel();

            Appointment     = new Appointment();
            CopyAppointment = (Appointment)appointment.Clone();

            DialogBoxViewModel = new DialogBoxViewModel();

            SearchPatientCommand = new DelegateCommand(SearchPatient);

            startLoadTreatmentsThread();
            startLoadPatientsThread();
            startLoadUsersThread();
            startLoadFromDatabase("allaboutteeth_" + GetType().Namespace.Replace("AllAboutTeethDCMS.", ""), Filter);

            SelectedTreatments = new ObservableCollection <Treatment>();

            AddTreatmentCommand    = new DelegateCommand(AddTreatment);
            RemoveTreatmentCommand = new DelegateCommand(RemoveTreatment);
            SetTimes();
        }