public BaseSECConnectionViewModel(IUnityContainer container, SECConnectionView view)
     : base()
 {
     this.view      = view;
     this.container = container;
     Model          = new SECConnectionModel();
     this.view.DataGridDetailSelectionChange += OnDataGridDetailSelectionChange;
 }
Exemplo n.º 2
0
 public object Execute(Type TypeView, int menuId)
 {
     if (TypeView == typeof(SECUserView))
     {
         SECUserView view = container.Resolve <SECUserView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(SECRoleView))
     {
         SECRoleView view = container.Resolve <SECRoleView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(SECConnectionView))
     {
         SECConnectionView view = container.Resolve <SECConnectionView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     return(null);
 }
 public SECConnectionViewModel(IUnityContainer container, SECConnectionView view)  : base(container, view)
 {
 }