Esempio n. 1
0
        // ctor
        public EidtMasjeedViewModel(MasjeedModel masjeed)
        {
            // Property
            Masjeed         = masjeed;
            ValidationRules = new MasjeedValidator();

            // Command
            PutCommand = new Command(Put);
        }
Esempio n. 2
0
        // ctor
        public AddMasjeedViewModel()
        {
            // Property
            Masjeed         = new MasjeedModel();
            ValidationRules = new MasjeedValidator();

            // Command
            PostCommand        = new Command(Post);
            AddLocationCommand = new Command(AddLocation);
        }
Esempio n. 3
0
        // 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);
        }