[성현모] 패키지설치, DI 패턴 적용.
This commit is contained in:
24
eCIAv2.WindowsApp/ViewModels/MainFromViewModel.cs
Normal file
24
eCIAv2.WindowsApp/ViewModels/MainFromViewModel.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using eCIAv2.WindowsApp.Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace eCIAv2.WindowsApp.ViewModels
|
||||
{
|
||||
public class MainFromViewModel
|
||||
{
|
||||
private readonly ConfigService _configService;
|
||||
|
||||
public MainFromViewModel(ConfigService configService)
|
||||
{
|
||||
_configService = configService;
|
||||
}
|
||||
|
||||
public string LoadConfig()
|
||||
{
|
||||
return _configService.LoadConfig();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user