Ejemplo n.º 1
0
        public void ToConnect()
        {
            FlightBoardModel salim      = FlightBoardModel.getInstance();
            Thread           connection = new Thread(() => salim.connect());

            connection.Start();
        }
Ejemplo n.º 2
0
 public FlightBoardVM()
 {
     model = FlightBoardModel.getInstance();
     model.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e)
     {
         if (e.PropertyName == "Lat")
         {
             Lat = model.Lat;
         }
         // Update the lon.
         else if (e.PropertyName == "Lon")
         {
             Lon = model.Lon;
         }
         // Notify everyone of changes.
         PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(e.PropertyName));
     };
 }
Ejemplo n.º 3
0
        private FlightBoardModel model; // The model object for updating its properties

        public ClientHandler(FlightBoardModel model)
        {
            this.model = model;
        }