Exemple #1
0
 /// <summary>
 /// Stats
 /// </summary>
 public Stats(Data dataController, CoPilot.View.CoPilot copilot)
 {
     //data controller
     this.DataController = dataController;
     this.DataController.PropertyChanged += propertyChangedEvent;
     //menu controller
     this.MenuController = new Menu();
     this.MenuController.Context = MenuContext.Statistics;
     //copilot
     this.CoPilot = copilot;
     //stats
     this.baseStats = new Statistics.Statistics(DataController.Records);
     this.speedwayStats = new Statistics.Statistics(DataController.Circuits);
 }
 /// <summary>
 /// Initialize HttpServer class
 /// </summary>
 public HttpServer(Data dataController, CoPilot.View.CoPilot application)
 {
     this.dataController = dataController;
     this.application = application;
 }
 /// <summary>
 /// Update progress
 /// </summary>
 /// <param name="ftp"></param>
 /// <param name="progress"></param>
 private async void updateProgress(CoPilot.Controller.Ftp ftp, Progress progress)
 {
     //connect
     ftp.Connect(progress);
     //get file size
     await this.getFileSize(progress);
 }