// ctor public EidtMasjeedViewModel(MasjeedModel masjeed) { // Property Masjeed = masjeed; ValidationRules = new MasjeedValidator(); // Command PutCommand = new Command(Put); }
// ctor public AddMasjeedViewModel() { // Property Masjeed = new MasjeedModel(); ValidationRules = new MasjeedValidator(); // Command PostCommand = new Command(Post); AddLocationCommand = new Command(AddLocation); }
// ctor public MasjeedDetailsViewModel(MasjeedModel masjeed) { // Property Masjeed = masjeed; // Command GoToLocationCommand = new Command(GoToLocation); ShowLocationCommand = new Command(ShowLocation); DeleteCommand = new Command(Delete); GoToPutPageCommand = new Command(GoToPutPage); }
// ctor public MasjeedViewModel() { // Property Masjeeds = new ObservableCollection <MasjeedModel>(); SelectedMasjeed = new MasjeedModel(); // Get Get(); // Command SaveAsPDFCommand = new Command(SaveAsPDF); PullRefreshCommand = new Command(Refresh); GoToPostPageCommand = new Command(GoToPostPage); GoToDetailsPageCommand = new Command(GoToDetailsPage); }