| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="DeterminateBusy.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | namespace MyNet.UI.Loading.Models; |
| | | 8 | | |
| | | 9 | | /// <summary> |
| | | 10 | | /// Busy state for a single operation with a known progress range (progress bar). |
| | | 11 | | /// </summary> |
| | | 12 | | public class DeterminateBusy : Busy |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Gets or sets the message displayed during the busy operation. |
| | | 16 | | /// </summary> |
| | 3 | 17 | | public string? Message { get; set => SetProperty(ref field, value); } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Gets or sets the current progress value of the busy operation. |
| | | 21 | | /// </summary> |
| | 3 | 22 | | public double Value { get; set => SetProperty(ref field, value); } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Gets or sets the maximum value for the progress indicator. |
| | | 26 | | /// </summary> |
| | 3 | 27 | | public double Maximum { get; set => SetProperty(ref field, value); } = 1; |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Gets or sets the minimum value for the progress indicator. |
| | | 31 | | /// </summary> |
| | 3 | 32 | | public double Minimum { get; set => SetProperty(ref field, value); } |
| | | 33 | | } |
| | | 34 | | |