PageRenderTime 40ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/Controllers/ModuleController.cs

https://github.com/cmath/SimpleLoginManager
C# | 47 lines | 41 code | 6 blank | 0 comment | 0 complexity | 5ead58f27f07e2c72ec2654d6bf6276a MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.Composition;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using Login.Helpers;
  9. using Login.Services;
  10. using Login.ViewModel;
  11. namespace Login.Controllers
  12. {
  13. [Export(typeof(IModuleController)), Export]
  14. class ModuleController : Controller, IModuleController
  15. {
  16. private readonly ShellViewModel shellViewModel_;
  17. private readonly IValidationRule validation_;
  18. private readonly IShellService shellService_;
  19. private readonly RuleController ruleController_;
  20. [ImportingConstructor]
  21. public ModuleController ( ShellViewModel shellViewModel , ShellService shellService, RuleController ruleController)
  22. {
  23. shellViewModel_ = shellViewModel;
  24. shellService_ = shellService;
  25. ruleController_ = ruleController;
  26. shellService_.ShellView = shellViewModel_.View;
  27. }
  28. public void Initialize ( )
  29. {
  30. ruleController_.Initialize( );
  31. }
  32. public void Run ( )
  33. {
  34. shellViewModel_.Show( );
  35. }
  36. public void ShutDown ( )
  37. {
  38. throw new NotImplementedException( );
  39. }
  40. }
  41. }