public AddReceptViewModel(PhysicianShellViewModel containingVm, string patientId, Physician physician) { this.patientId = patientId; addReceptModel = new ReceptModel(patientId, physician); this.containingVm = containingVm; AddToDbCommand = new AddToDbCommand(this); DrugCollection = new ObservableCollection <Drug>(addReceptModel.DrugList); OperationCommand = new CreatePDFCommand(this); IsEnabledPDF = false; }
public RecomendationViewModel() { today = "Here are our recommendations for today (" + DateTime.Now.DayOfWeek + ")"; CreatePDFStores = new CreatePDFCommand(); CreatePDFDays = new CreatePDFCommand(); CreatePDFStores.GeneratePdfEvent += CreatePDFStores_function; CreatePDFDays.GeneratePdfEvent += CreatePDFDays_function; generateCollectionFromModel(); PopUpEnabled = false; PDFMessageQueue = new SnackbarMessageQueue(); }