Example #1
0
 public MyViewModel()
 {
     coordonates = new Coordonates
     {
         Latitude  = "5.1245873",
         Longitude = "45.3658741",
         Distance  = "500"
     };
 }
Example #2
0
 public MyViewModel()
 {
     coordonates = new Coordonates
     {
         Latitude  = "5.1245873",
         Longitude = "45.3658741",
         Distance  = "500",
     };
     result          = "Cliquez sur le bouton pour me changer";
     this.ModifyData = new Command(DoModifyData);
 }
        //---------------   Constructor     ---------------------------------------------------------

        public CoordonatesViewModel()
        {
            //instanciate coordonates
            coordonates = new Coordonates
            {
                Latitude  = "5.728043",
                Longitude = "45.184320",
                Distance  = "500",
                IsValid   = true,
            };

            //instanciate ICommand
            DisplayTransportMessageCommand = new CoordonatesCommand(
                DisplayTransportMessage);
            RefreshCommand = new RefreshCommand(RefreshData);

            //instanciate ObservableCollection
            LinesToDisplay = new BindableCollection <LinesToDisplay>();
        }