From c563df7ac0138875e4eea0340e588f720f54a59b Mon Sep 17 00:00:00 2001 From: tzim Date: Sun, 29 Dec 2013 20:38:14 +0000 Subject: [PATCH] Affichage correct du temps de transition lors d'un appel via le SeqMaitre --- DMX-2.0/SeqLinUI.cs | 4 ++-- DMX-2.0/SequenceurLineaire.cs | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DMX-2.0/SeqLinUI.cs b/DMX-2.0/SeqLinUI.cs index 29f9462..d288be2 100644 --- a/DMX-2.0/SeqLinUI.cs +++ b/DMX-2.0/SeqLinUI.cs @@ -188,8 +188,8 @@ namespace DMX2 else pbDuree.Fraction = 0.0d; - if (sequenceur.EffetCourrant.Transition != TimeSpan.Zero) - pbTrans.Fraction = Math.Min (1.0d, sequenceur.TimeStamp.TotalMilliseconds / sequenceur.EffetCourrant.Transition.TotalMilliseconds); + if (sequenceur.TempsTransition != TimeSpan.Zero) + pbTrans.Fraction = Math.Min (1.0d, sequenceur.TimeStamp.TotalMilliseconds / sequenceur.TempsTransition.TotalMilliseconds); else pbTrans.Fraction = 0.0d; diff --git a/DMX-2.0/SequenceurLineaire.cs b/DMX-2.0/SequenceurLineaire.cs index 72e661f..7b5008a 100644 --- a/DMX-2.0/SequenceurLineaire.cs +++ b/DMX-2.0/SequenceurLineaire.cs @@ -240,6 +240,12 @@ namespace DMX2 } } + public TimeSpan TempsTransition { + get { + return tempsTransition; + } + } + public void ChangeCircuits (System.Collections.Generic.List list) { foreach (var c in circuitsSeq.ToArray()) {