Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer
This commit is contained in:
commit
4a1165fe07
6 files changed
+101
-12
No files matched your search
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommonServiceLocator;
|
||||
|
||||
|
||||
namespace DyeingComputer.ViewModel
|
||||
{
|
||||
public class ViewModelLocator
|
||||
{
|
||||
public ViewModelLocator()
|
||||
{
|
||||
// ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
|
||||
|
||||
////if (ViewModelBase.IsInDesignModeStatic)
|
||||
////{
|
||||
//// // Create design time view services and models
|
||||
//// SimpleIoc.Default.Register<IDataService, DesignDataService>();
|
||||
////}
|
||||
////else
|
||||
////{
|
||||
//// // Create run time view services and models
|
||||
//// SimpleIoc.Default.Register<IDataService, DataService>();
|
||||
////}
|
||||
|
||||
// SimpleIoc.Default.Register<MainWindowViewModel>();
|
||||
}
|
||||
|
||||
// public MainWindowViewModel Main
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return ServiceLocator.Current.GetInstance<MainWindowViewModel>();
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user