Esempio n. 1
0
        /// <summary>
        /// Refreshes the list of cars
        /// </summary>
        public void RefreshCars()
        {
            if (cars == null)
            {
                cars = new VehicleListModel();
            }

            try
            {
                cars.RefreshData();
            }
            catch (Exception ex)
            {
                CrestronConsole.PrintLine("SimplTeslaMaster.Main.RefreshCars()::Error Refreshing Cars: " + ex.ToString());
            }
        }
Esempio n. 2
0
 public Main()
 {
     // Instantiate variables
     Auth = new Authentication();
     cars = new VehicleListModel();
 }