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

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

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