public void Setup(IProgressComponent component) { if (this.IsChanged(ParameterFlag.P1) == true) { component.SetDuration(this.duration); } if (this.IsChanged(ParameterFlag.P2) == true) { component.SetMinNormalizedValue(this.minNormalizedValue); } if (this.IsChanged(ParameterFlag.P3) == true) { component.SetContiniousState(this.continious); } if (this.IsChanged(ParameterFlag.P4) == true) { component.SetContiniousWidth(this.continiousWidth); } if (this.IsChanged(ParameterFlag.P5) == true) { component.SetContiniousAngleStep(this.continiousAngleStep); } if (this.IsChanged(ParameterFlag.P6) == true) { component.SetCallback((value) => this.onChanged.Invoke()); } if (this.IsChanged(ParameterFlag.P7) == true) { component.SetValue(this.currentValueNormalized, immediately: true); } }
public void Setup(IProgressComponent component) { if (this.IsChanged(ParameterFlag.P1) == true) component.SetDuration(this.duration); if (this.IsChanged(ParameterFlag.P2) == true) component.SetMinNormalizedValue(this.minNormalizedValue); if (this.IsChanged(ParameterFlag.P3) == true) component.SetContiniousState(this.continious); if (this.IsChanged(ParameterFlag.P4) == true) component.SetContiniousWidth(this.continiousWidth); if (this.IsChanged(ParameterFlag.P5) == true) component.SetContiniousAngleStep(this.continiousAngleStep); if (this.IsChanged(ParameterFlag.P6) == true) { component.SetCallback((value) => this.onChanged.Invoke()); } if (this.IsChanged(ParameterFlag.P7) == true) component.SetValue(this.currentValueNormalized, immediately: true); }
public static string GetSpeedText(this IProgressComponent This) => This.Speed == null ? "" : $" @ {This.Speed.Value.FormatSize()}/s";
public static string GetProgressText(this IProgressComponent This) => This.Progress.ToString("0.##");