Change tooltip times

This commit is contained in:
Jaex 2016-10-12 11:17:01 +03:00
parent 47899781d9
commit c8ac26d8dd
2 changed files with 4 additions and 8 deletions

View file

@ -50,9 +50,9 @@ private set
} }
} }
public TimeSpan Duration { get; private set; } public TimeSpan Duration { get; private set; } = TimeSpan.Zero;
public TimeSpan FadeInDuration { get; private set; } public TimeSpan FadeInDuration { get; private set; } = TimeSpan.Zero;
public TimeSpan FadeOutDuration { get; private set; } public TimeSpan FadeOutDuration { get; private set; } = TimeSpan.Zero;
public TimeSpan TotalDuration => FadeInDuration + Duration + FadeOutDuration; public TimeSpan TotalDuration => FadeInDuration + Duration + FadeOutDuration;
@ -60,10 +60,6 @@ private set
private Stopwatch timer = new Stopwatch(); private Stopwatch timer = new Stopwatch();
public TextAnimation()
{
}
public TextAnimation(TimeSpan duration) public TextAnimation(TimeSpan duration)
{ {
Duration = duration; Duration = duration;

View file

@ -36,7 +36,7 @@ internal partial class ShapeManager
{ {
public bool IsMenuCollapsed { get; private set; } public bool IsMenuCollapsed { get; private set; }
internal TextAnimation MenuTextAnimation = new TextAnimation(TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(0.5), TimeSpan.FromSeconds(0.5)); internal TextAnimation MenuTextAnimation = new TextAnimation(TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(0), TimeSpan.FromSeconds(0.5));
private Form menuForm; private Form menuForm;
private ToolStripEx tsMain; private ToolStripEx tsMain;