Example #1
0
        public void ToConnect()
        {
            FlightBoardModel salim      = FlightBoardModel.getInstance();
            Thread           connection = new Thread(() => salim.connect());

            connection.Start();
        }
Example #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));
     };
 }
Example #3
0
        private FlightBoardModel model; // The model object for updating its properties

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