//private void FireworkManager_PropertyChanged(object sender, PropertyChangedEventArgs e) //{ //TODO : A revoir /*if (e.PropertyName == "IsDirty") * { * * //Firework has changed so control panel must be reset * RefreshControlPanelUI(RefreshControlPanelEventType.FireworkModifiedEvent); * }*/ // } /// <summary> /// Occurs when fireworks is finished /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FireworkManager_FireworkFinished(object sender, EventArgs e) { //Refresh control panel possibility RefreshControlPanelUI(); string message = "Le feu d'artifice est terminé !\r\n\r\n" + _fireworkManager.GetFireworkStatistics(); DialogBoxHelper.ShowInformationMessage(message); }
/// <summary> /// Saves firework with current name /// </summary> public void SaveFirework() { if (FireworkManager.IsNew) { SaveAsFirework(); } else { _fireworkManager.SaveFirework(); DialogBoxHelper.ShowInformationMessage("Enregistrement effectué avec succès"); } }