delete lazy code in viewmodels
This commit is contained in:
1 parent
066cedeb73
commit
700f54ab2b
23 files changed
+141
-214
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using GalaSoft.MvvmLight;
|
||||
using GalaSoft.MvvmLight;
|
||||
using GalaSoft.MvvmLight.Command;
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
using HandyControlDemo.Data;
|
||||
@@ -14,8 +13,7 @@ namespace HandyControlDemo.ViewModel
|
||||
VersionInfo = VersionHelper.GetVersion();
|
||||
}
|
||||
|
||||
public RelayCommand<string> OpenViewCmd => new Lazy<RelayCommand<string>>(() =>
|
||||
new RelayCommand<string>(OpenView)).Value;
|
||||
public RelayCommand<string> OpenViewCmd => new(OpenView);
|
||||
|
||||
private void OpenView(string viewName)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user