You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace ConUpdate.ViewModel
|
|
{
|
|
class ProgressViewModel : ViewModelBase
|
|
{
|
|
private int currentProgress = 0;
|
|
private int maxValue = 0;
|
|
private double val = 0.00;
|
|
private string message = string.Empty;
|
|
private string title = string.Empty;
|
|
|
|
|
|
public double Val
|
|
{
|
|
get { return val; }
|
|
set
|
|
{
|
|
val = value;
|
|
OnPropertyChanged("Val");
|
|
}
|
|
}
|
|
|
|
public string Title
|
|
{
|
|
get { return title; }
|
|
set
|
|
{
|
|
title = value;
|
|
OnPropertyChanged("Title");
|
|
}
|
|
}
|
|
|
|
public int CurrentProgress
|
|
{
|
|
get { return currentProgress; }
|
|
set
|
|
{
|
|
currentProgress = value;
|
|
OnPropertyChanged("CurrentProgress");
|
|
}
|
|
}
|
|
|
|
public int MaxValue
|
|
{
|
|
get { return maxValue; }
|
|
set
|
|
{
|
|
maxValue = value;
|
|
OnPropertyChanged("MaxValue");
|
|
}
|
|
}
|
|
|
|
public string Message
|
|
{
|
|
get { return message; }
|
|
set
|
|
{
|
|
message = value;
|
|
OnPropertyChanged("Message");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|