3 changed files with 24 additions and 5 deletions
@ -1,15 +1,34 @@ |
|||||
using GalaSoft.MvvmLight; |
using GalaSoft.MvvmLight; |
||||
|
using GalaSoft.MvvmLight.Command; |
||||
using Models; |
using Models; |
||||
using System; |
using System; |
||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
using System.Linq; |
using System.Linq; |
||||
using System.Text; |
using System.Text; |
||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
|
||||
namespace Audit.ViewModel |
namespace Audit.ViewModel |
||||
{ |
{ |
||||
public class LogViewModel : ViewModelBase |
public class LogViewModel : ViewModelBase |
||||
{ |
{ |
||||
public UserAccount UserAccount { get; set; } = AuditData.Instance.UserAccount; |
public UserAccount UserAccount { get; set; } = AuditData.Instance.UserAccount; |
||||
|
|
||||
|
private RelayCommand logCommand; |
||||
|
public RelayCommand LogCommand |
||||
|
{ |
||||
|
get { return logCommand; } |
||||
|
set { logCommand = value; } |
||||
|
} |
||||
|
|
||||
|
public LogViewModel() |
||||
|
{ |
||||
|
|
||||
|
logCommand = new RelayCommand(() => |
||||
|
{ |
||||
|
MessageBox.Show("成功"); |
||||
|
|
||||
|
}); |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue