Ejemplo n.º 1
0
 public LoginViewModel()
 {
     usuarioRepository= new UsuarioRepository();
     this.Visibility = "Collapsed";
     //this.UserName = "******";
     //this.UserPassword = "******";
 }
        public TableroViewModel(IConfirmation con)
        {
            syncRepository = new SyncLogRepository();
            accionRepository = new CatAccionActualRepository();
            //Condicion
            this._CondProRepository = new Protell.DAL.Repository.CondProRepository();
            this._PuntoMedicionMaxMinRepository = new Protell.DAL.Repository.PuntoMedicionMaxMinRepository();
            this._RegistroRepository = new Protell.DAL.Repository.RegistroRepository();
            this._Confirmation = con;
            this.usuarioRepository = new UsuarioRepository();
            //Categorias
            cPuntosMedicion = new CategoriasViewModel(this.Usuario);
            cPuntosMedicion.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(cPuntosMedicion_PropertyChanged);

            cLumbreras = new CategoriasViewModel(this.Usuario);
            cLumbreras.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(cLumbreras_PropertyChanged);

            cEstPluviograficas = new CategoriasViewModel(this.Usuario);
            cEstPluviograficas.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(cEstPluviograficas_PropertyChanged);

            //PuntosMedicion
            pmAll = new PuntosMedicionViewModel();
            pmAll.PropertyChanged += pmAll_PropertyChanged;

            init();
        }