Пример #1
0
        // ctor
        public EidtMasjeedViewModel(MasjeedModel masjeed)
        {
            // Property
            Masjeed         = masjeed;
            ValidationRules = new MasjeedValidator();

            // Command
            PutCommand = new Command(Put);
        }
Пример #2
0
        // ctor
        public AddMasjeedViewModel()
        {
            // Property
            Masjeed         = new MasjeedModel();
            ValidationRules = new MasjeedValidator();

            // Command
            PostCommand        = new Command(Post);
            AddLocationCommand = new Command(AddLocation);
        }