committed
This commit is contained in:
37
GuiWPF/ViewModelBase.cs
Normal file
37
GuiWPF/ViewModelBase.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace GuiWPF
|
||||
{
|
||||
public class ViewModelBase : NotificationObject
|
||||
{
|
||||
private bool valIsBusy;
|
||||
private string valBusyMessage;
|
||||
|
||||
public bool IsBusy
|
||||
{
|
||||
get => valIsBusy;
|
||||
set
|
||||
{
|
||||
if(valIsBusy != value)
|
||||
{
|
||||
valIsBusy = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
public string BusyMessage
|
||||
{
|
||||
get => valBusyMessage;
|
||||
set
|
||||
{
|
||||
if(valBusyMessage != value)
|
||||
{
|
||||
valBusyMessage = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user