public CONRecordViewModel(IUnityContainer container, CONRecordView view)  : base(container, view)
 {
     this.SendCommand          = new RelayCommand(OnSendCommand);
     this.GenerateFilesCommand = new RelayCommand(OnGenerateFilesCommand);
     this.MarkSendCommand      = new RelayCommand(OnMarkSendCommand);
     this.MarkNotSendCommand   = new RelayCommand(OnMarkNotSendCommand);
 }
 public BaseCONRecordViewModel(IUnityContainer container, CONRecordView view)
     : base()
 {
     this.view      = view;
     this.container = container;
     Model          = new CONRecordModel();
     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);
 }