Rename parameter to make more sense

This commit is contained in:
Dean Herbert 2021-02-05 15:29:32 +09:00
parent 9e9e382bee
commit 4bc324f040
1 changed files with 10 additions and 5 deletions

View File

@ -40,13 +40,18 @@ public double CurrentTime
set => CurrentNumber.Value = value;
}
private readonly bool userInteractive;
public override bool HandlePositionalInput => userInteractive;
public override bool HandleNonPositionalInput => userInteractive;
private readonly bool allowSeek;
public ProgressBar(bool userInteractive)
public override bool HandlePositionalInput => allowSeek;
public override bool HandleNonPositionalInput => allowSeek;
/// <summary>
/// Construct a new progress bar.
/// </summary>
/// <param name="allowSeek">Whether the user should be allowed to click/drag to adjust the value.</param>
public ProgressBar(bool allowSeek)
{
this.userInteractive = userInteractive;
this.allowSeek = allowSeek;
CurrentNumber.MinValue = 0;
CurrentNumber.MaxValue = 1;