public AsuntoNotificacionesViewModel(PantallaInicioViewModel pantallaInicioViewModel, int filtro) { this._PantallaInicioViewModel = pantallaInicioViewModel; this._Rol = _PantallaInicioViewModel.Usuario.Rol; this._Filtro = filtro; this._AsuntoRepository = new GestorDocument.DAL.Repository.AsuntoRepository(); this.Busqueda = new BusquedaViewModel(this._Rol); this._DestinatarioRepository = new GestorDocument.DAL.Repository.DestinatarioRepository(); this.LoadInfoGrid(); }
public SyncViewModel(Dispatcher dispatcher, PantallaInicioViewModel pantallaInicioViewModel,string Assembly) { this.LoadPropiedades(); this._Dispatcher = dispatcher; this._PantallaInicioViewModel = pantallaInicioViewModel; this.Message = "Sincronizando..."; this._jobDone = false; this.VersionAssembly = Assembly; this.IdUsuario = _PantallaInicioViewModel.Usuario.IdUsuario.ToString(); }
public void GetAsunto(PantallaInicioViewModel viewModel, int filtro) { try { this.DataContext = new AsuntoViewModel(viewModel, filtro); } catch (Exception) { ; } }