public LoginViewModel() { _ = LoadClients(); CurrentClient = new ObservableRangeCollection <Client>(); SetPreferences(); LoginCommand = new MvvmHelpers.Commands.Command(Login); }
public ClientDetailsViewModel() { Title = "Clients Details"; CurrentClient = new ObservableRangeCollection <Client>(); BackToClientsPageCommand = new MvvmHelpers.Commands.Command(BackToClients); SetClientDetailsCommand = new MvvmHelpers.Commands.Command(SetClientDetails); PopulateClientDetails(); }
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); }
public BaseMembreViewModel() { SearchCommand = new MvvmHelpers.Commands.Command <string>(searchText => DoSearchCommand(searchText)); MembreList.CollectionChanged += MembreList_CollectionChanged; }
public BaseEvenementViewModel() { SearchCommand = new MvvmHelpers.Commands.Command <string>(searchText => DoSearchCommand(searchText)); EvenementList.CollectionChanged += EvenementList_CollectionChanged; }