public LoginViewModel()
        {
            _ = LoadClients();

            CurrentClient = new ObservableRangeCollection <Client>();

            SetPreferences();

            LoginCommand = new MvvmHelpers.Commands.Command(Login);
        }
예제 #2
0
        public ClientDetailsViewModel()
        {
            Title = "Clients Details";

            CurrentClient = new ObservableRangeCollection <Client>();

            BackToClientsPageCommand = new MvvmHelpers.Commands.Command(BackToClients);

            SetClientDetailsCommand = new MvvmHelpers.Commands.Command(SetClientDetails);

            PopulateClientDetails();
        }
예제 #3
0
        public BasePatrimoineViewModel()
        {
            //   PinCollection.Add(new Pin() { Position = MyPosition, Type = PinType.Generic, Label = "" + NomDuBien });
            //
            //
            //   Task.Run(async () =>
            //	{
            //		var position = await Plugin.Geolocator.CrossGeolocator.Current.GetPositionAsync();
            //       MyPosition = new Position(position.Latitude, position.Longitude);
            //
            //   });

            SearchCommand = new MvvmHelpers.Commands.Command <string>(searchText => DoSearchCommand(searchText));

            PatrimoineList.CollectionChanged += PatrimoineList_CollectionChanged;
        }
 public MoreViewModel()
 {
     LogoutCommand = new MvvmHelpers.Commands.Command(Logout);
 }
예제 #5
0
        public BaseMembreViewModel()
        {
            SearchCommand = new MvvmHelpers.Commands.Command <string>(searchText => DoSearchCommand(searchText));

            MembreList.CollectionChanged += MembreList_CollectionChanged;
        }
예제 #6
0
        public BaseEvenementViewModel()
        {
            SearchCommand = new MvvmHelpers.Commands.Command <string>(searchText => DoSearchCommand(searchText));

            EvenementList.CollectionChanged += EvenementList_CollectionChanged;
        }