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); }
public SmartViewModel() { _description = "SMART"; OneCommand = new SampleCommand((o) => { ShowHide("WindowOne", ref IsOne); }); TwoCommand = new SampleCommand((o) => { ShowHide("WindowTwo", ref IsTwo); }); }