예제 #1
0
        public PatientViewModel([Import(typeof(IPatientSource))]IPatientSource patientSource)
        {
            _description = "Patient";
            PatientSource = patientSource;


            PatientItemSource = new ObservableCollection<Patient>();
            Update();

            NewCommand = new SampleCommand(DoNew);
            DeleteCommand = new SampleCommand(DoDelete);
            ModifyCommand = new SampleCommand(DoModify);
        }
예제 #2
0
 public SmartViewModel()
 {
     _description = "SMART";
     OneCommand   = new SampleCommand((o) => { ShowHide("WindowOne", ref IsOne); });
     TwoCommand   = new SampleCommand((o) => { ShowHide("WindowTwo", ref IsTwo); });
 }