/Controllers/ModuleController.cs
C# | 47 lines | 41 code | 6 blank | 0 comment | 0 complexity | 5ead58f27f07e2c72ec2654d6bf6276a MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.Composition;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using Login.Helpers;
- using Login.Services;
- using Login.ViewModel;
- namespace Login.Controllers
- {
- [Export(typeof(IModuleController)), Export]
- class ModuleController : Controller, IModuleController
- {
- private readonly ShellViewModel shellViewModel_;
- private readonly IValidationRule validation_;
- private readonly IShellService shellService_;
- private readonly RuleController ruleController_;
- [ImportingConstructor]
- public ModuleController ( ShellViewModel shellViewModel , ShellService shellService, RuleController ruleController)
- {
- shellViewModel_ = shellViewModel;
- shellService_ = shellService;
- ruleController_ = ruleController;
- shellService_.ShellView = shellViewModel_.View;
- }
- public void Initialize ( )
- {
- ruleController_.Initialize( );
- }
- public void Run ( )
- {
- shellViewModel_.Show( );
- }
- public void ShutDown ( )
- {
- throw new NotImplementedException( );
- }
- }
- }