private void Initialize() { GPSSystem.Setup(); CityRenderHandler = new CityRenderHandler(this, CanvasMain); CustomerRenderHandler = new CustomerRenderHandler(CanvasMain, this); CarRenderHandler = new CarRenderHandler(CanvasMain, this); SimulationControlHandler = new SimulationControlHandler(this); PropertyDisplayHandler = new PropertyDisplayHandler(this); ZoomHandler = new ZoomHandler(this); DrawingLoop.Start(); ZoomLoop.Start(); WPFLoop.Subscribe(Update); CommandLoop.Subscribe(CmdUpdate); PreviewMouseWheel += ZoomHandler.Scroll; ResultImport.ResultImported += ResultImportComplete; }
private void BtnDefault_Click(object sender, RoutedEventArgs e) { PropertyDisplayHandler.ResetDefaults(); }
/// <summary> /// Method for the save button with saving the new values the user has filled in in the Settings tab. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnSave_Click(object sender, RoutedEventArgs e) { PropertyDisplayHandler.SaveProperties(); PropertyDisplayHandler.UpdatePriceLabel(LabelSimulationPriceFormula); }