/// <summary> /// Creates new instance of <see cref="LoadMedicinesService"/> /// </summary> /// <param name="viewModel">Medidines page viewmodel</param> public LoadMedicinesService(LoadablePageViewModel viewModel) { // setting vm this.viewModel = viewModel; // setting Medicine API client this.client = ((App)App.Current).MedicineClient; }
/// <summary> /// Creates new instance of <see cref="ProfileCommand<T>"/> /// </summary> /// <param name="loadablePageViewModel">Loadable page viewmodel</param> /// <param name="name">Profile name</param> /// <param name="executeMethod">Execute method</param> /// <param name="canExecuteMethod">Can execute method</param> public ProfileCommand(LoadablePageViewModel loadablePageViewModel, string name, Func <T, Task <Response <string> > > executeMethod, Func <T, bool> canExecuteMethod) : base(executeMethod, canExecuteMethod) { this._vm = loadablePageViewModel; this._name = name; this._isDoneAvailable = true; }