Example #1
0
 public BaseCONErrorViewModel(IUnityContainer container, CONErrorView view)
     : base()
 {
     this.view      = view;
     this.container = container;
     Model          = new CONErrorModel();
     this.view.DataGridDetailSelectionChange += OnDataGridDetailSelectionChange;
 }
 public object Execute(Type TypeView, int menuId)
 {
     if (TypeView == typeof(CONEquivalenceView))
     {
         CONEquivalenceView view = container.Resolve <CONEquivalenceView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(CONErrorView))
     {
         CONErrorView view = container.Resolve <CONErrorView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(CONIntegratorConfigurationView))
     {
         CONIntegratorConfigurationView view = container.Resolve <CONIntegratorConfigurationView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(CONRecordView))
     {
         CONRecordView view = container.Resolve <CONRecordView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(CONSQLView))
     {
         CONSQLView view = container.Resolve <CONSQLView>();
         CheckSecurity(view.ViewModel, menuId);
         return(view);
     }
     else if (TypeView == typeof(CONSQLExecuteView))
     {
         CONSQLExecuteView view = container.Resolve <CONSQLExecuteView>();
         return(view);
     }
     else if (TypeView == typeof(WSEquivalenciasFormasPagoView))
     {
         WSEquivalenciasFormasPagoView view = container.Resolve <WSEquivalenciasFormasPagoView>();
         return(view);
     }
     else if (TypeView == typeof(WSCONCESIONEView))
     {
         WSCONCESIONEView view = container.Resolve <WSCONCESIONEView>();
         return(view);
     }
     else if (TypeView == typeof(WSCONCESIONESTIENDAView))
     {
         WSCONCESIONESTIENDAView view = container.Resolve <WSCONCESIONESTIENDAView>();
         return(view);
     }
     return(null);
 }
Example #3
0
 public CONErrorViewModel(IUnityContainer container, CONErrorView view)  : base(container, view)
 {
 }