public BaseCONSQLExecuteViewModel(IUnityContainer container, CONSQLExecuteView view)
     : base()
 {
     this.view      = view;
     this.container = container;
     Model          = new CONSQLExecuteModel();
     //this.view.DataGridDetailSelectionChange += OnDataGridDetailSelectionChange;
 }
Ejemplo n.º 2
0
 public CONSQLExecuteViewModel(IUnityContainer container, CONSQLExecuteView view)
     : base(container, view)
 {
     this.view.EditParameter += view_EditParameter;
     this.ExecuteCommand      = new RelayCommand(OnExecuteCommand);
     this.view.DataGridDetailSelectionChanges += view_DataGridDetailSelectionChanges;
     this.view.ClearData += view_ClearData;
 }
Ejemplo n.º 3
0
 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);
 }