public PetViewModel(IPetsData petsData, IPetDescription petDescription, IMapper mapper) : base(petsData, mapper) { SaveCommand = new DelegateCommand(SaveCommandExecute); EditCommand = new DelegateCommand(Edit); CancelCommand = new DelegateCommand(Cancel); ChangeImageCommand = new DelegateCommand <EventArgs>(ChangeImage); ValidateName(); this.petDescription = petDescription; }
public HomeViewModel(IRegionManager regionManager, IPetsData petsData, IPetDescription petDescription, IDialogService dialogService) { AddCommand = new DelegateCommand(Add); OpenCommand = new DelegateCommand(Open); DeleteCommand = new DelegateCommand(Delete); this.regionManager = regionManager; this.petsData = petsData; this.petDescription = petDescription; this.dialogService = dialogService; Pets = new ObservableCollection <IPetDescription>(); LoadData(); }
public VisitsViewModel(IPetsData petsData, IPetDescription petDescription, IDialogService dialogService, IMapper mapper) { AddCommand = new DelegateCommand(Add); DeleteCommand = new DelegateCommand <int?>(Delete); EditCommand = new DelegateCommand <int?>(Edit); this.petsData = petsData; this.petDescription = petDescription; this.dialogService = dialogService; this.mapper = mapper; Visits = new ObservableCollection <IVisitViewModel>(); LoadData(); }
public NotesViewModel(IPetsData petsData, IPetDescription petDescription, IDialogService dialogService, IMapper mapper) { AddCommand = new DelegateCommand(Add); DeleteCommand = new DelegateCommand <int?>(Delete); EditCommand = new DelegateCommand <int?>(Edit); SaveCommand = new DelegateCommand <int?>(Save); CancelCommand = new DelegateCommand <int?>(Cancel); this.petsData = petsData; this.petDescription = petDescription; this.dialogService = dialogService; this.mapper = mapper; Notes = new ObservableCollection <INoteViewModel>(); LoadData(); }
public WeightsViewModel(IPetsData petsData, IPetDescription petDescription, IDialogService dialogService, IMapper mapper) { AddCommand = new DelegateCommand(Add); EditCommand = new DelegateCommand(Edit); this.petsData = petsData; this.petDescription = petDescription; this.dialogService = dialogService; this.mapper = mapper; Weights = new ObservableCollection <IWeightViewModel>(); InitializeWeight(); InitializedWeight.PropertyChanged += InitializedWeight_PropertyChanged; LoadData(); }
public WeightViewModel(IPetsData petsData, IMapper mapper) : base(petsData, mapper) { }
public VisitViewModel(IPetsData petsData, IMapper mapper) : base(petsData, mapper) { }
public SingleViewModel(IPetsData petsData, IMapper mapper) { this.petsData = petsData; this.mapper = mapper; originValues = new Dictionary <string, object>(); }
public NoteViewModel(IPetsData petsData, IMapper mapper) : base(petsData, mapper) { }
public VaccinationViewModel(IPetsData petsData, IMapper mapper) : base(petsData, mapper) { }