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.
38 lines
696 B
38 lines
696 B
2 years ago
|
using GalaSoft.MvvmLight;
|
||
|
using GalaSoft.MvvmLight.Command;
|
||
|
using System;
|
||
|
using System.Windows.Input;
|
||
|
namespace PJZS.ViewModels
|
||
|
{
|
||
|
public class BaseVM : ViewModelBase
|
||
|
{
|
||
|
public Guid VMId { get; set; }
|
||
|
|
||
|
public ICommand LoadCommand { get; set; }
|
||
|
|
||
|
public ICommand UnloadCommand { get; set; }
|
||
|
|
||
|
public BaseVM()
|
||
|
{
|
||
|
VMId = Guid.NewGuid();
|
||
|
LoadCommand = new RelayCommand(Load);
|
||
|
UnloadCommand = new RelayCommand(Unload);
|
||
|
}
|
||
|
|
||
|
public virtual void Refresh()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
protected virtual void Load()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
protected virtual void Unload()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|