/// <summary> /// Création d'un nouveau ViewModel de thème /// </summary> public NatalChartViewModel( IFileService fileService, ITimeZoneProvider tzProvider, IAstroService astroService ) { //DateUT = new DateUT(DateTime.Now); //Longitude = new SweNet.Longitude(5, 20, 0, LongitudePolarity.East); //Latitude = new SweNet.Latitude(47, 52, 0, LatitudePolarity.North); //HouseSystem = HouseSystem.Placidus; //Planets.AddRange(new Planet[] { // Planet.Sun, Planet.Moon, Planet.Mercury, Planet.Venus, Planet.Mars, Planet.Jupiter, // Planet.Saturn, Planet.Uranus, Planet.Neptune, Planet.Pluto, // Planet.MeanNode, Planet.TrueNode, // Planet.MeanApog, Planet.OscuApog, Planet.Earth //}); //Planets.AddRange(new Planet[] { Planet.AsAsteroid(433), Planet.AsAsteroid(3045), Planet.AsAsteroid(7066) }); this.AstroService = astroService; _FileService = fileService; _TimeZoneProvider = tzProvider; FileName = null; IsDirty = false; Definition = new NatalChartDefinitionViewModel(_TimeZoneProvider); Definition.PropertyChanged += Definition_PropertyChanged; }
/// <summary> /// Réinitialisation du thème /// </summary> public void Reset() { Definition = new NatalChartDefinitionViewModel(_TimeZoneProvider); Definition.PropertyChanged += Definition_PropertyChanged; NatalChart = null; RaisePropertyChanged(() => Definition); RaisePropertyChanged(() => NatalChart); FileName = null; IsDirty = false; }