Ejemplo n.º 1
0
 private void OnConfirmNewPcaps(IConfirmation obj)
 {
     if (obj.Confirmed)
     {
         isNavCalculating = true;
         NewPcap          = 0;
         pcaps.Clear();
         // neue Pcaps anlegen (errechnen aus letztem Pcap + cashflows)
         foreach (InvestorCommitment c in commitments)
         {
             InvestorPcap pcap = new InvestorPcap()
             {
                 AsOfDate            = selectedQuarter.Date,
                 DateOfFinalPcap     = DateTime.Now,
                 FinalPcapAmount     = 0,
                 EstimatedPcapAmount = 0,
                 FinalPcapAmountInInvestorCurrency = 0,
                 InvestorCommitmentId   = c.Id,
                 InvestorHqTrustAccount = c.Investor.InvestorHqTrustAccount,
                 InvestorReference      = c.Investor.InvestorReference,
                 CommitmentAmount       = c.CommitmentAmount
             };
             pcap.EstimatedPcapAmount = CalculatePcap(c, selectedQuarter);
             pcap.FinalPcapAmount     = pcap.EstimatedPcapAmount;
             NewPcap += pcap.EstimatedPcapAmount;
             pcaps.Add(pcap);
         }
         isNavCalculating = false;
     }
     RaisePropertyChanged("Pcaps");
 }
Ejemplo n.º 2
0
        private void OnDeleteConfirmedAsync(IConfirmation obj)
        {
            if (obj.Confirmed)
            {
                var tab = SelectedTab;
                int id  = 0;
                if (tab.Playlist != null)
                {
                    Log("Getting local id");
                    id = (int)tab.Playlist?.Id;
                }

                if (id > 0)
                {
                    Log($"Deleting playlist: {id} : {tab.Playlist.Name}");
                    bool result = _horsifyPlaylistService.DeletePlaylistAsync(id).Result;
                    if (result)
                    {
                        //Remove tab item
                        Log($"Playlist deleted: {id} : {tab.Playlist.Name}");
                        OnCloseTab(tab);
                        this.PlayListViewModels.Remove(tab);
                    }
                }
                else
                {
                    Log("Cannot delete playlist with no id. Must be saved first.", Category.Warn);
                    OnCloseTab(tab);
                    this.PlayListViewModels.Remove(tab);
                }
            }
        }
Ejemplo n.º 3
0
        private void OnConfirmDeleteCommitment(IConfirmation confirm)
        {
            if (!confirm.Confirmed)
            {
                return;
            }

            // delete Commitment

            try
            {
                investorAccess.DeleteInvestorCommitment(SelectedCommitment);
                eventAggregator.GetEvent <StatusBarEvent>().Publish($"Das Commitment für den Fonds {SelectedCommitment.PeFund.FundShortName} wurde gelöscht.");

                Commitments.Remove(SelectedCommitment);
            }
            catch (Exception ex)
            {
                NotificationRequest.Raise(new Notification
                {
                    Title   = ApplicationNames.NotificationTitle,
                    Content = $"Das Commitment für den Fonds {SelectedCommitment.PeFund.FundShortName} konnte nicht gelöscht werden. " + ex.Message
                });
            }
        }
Ejemplo n.º 4
0
 private void OnDeleteCashFlowConfirmation(IConfirmation obj)
 {
     if (obj.Confirmed)
     {
         try
         {
             int number = investorAccess.DeleteInvestorCashFlows(InvestorCashFlows);
             NotificationRequest.Raise(new Notification()
             {
                 Title   = ApplicationNames.NotificationTitle,
                 Content = $"Es wurden {number.ToString()} Cashflows gelöscht!"
             });
             // remove CurrentItem from List
             UniqueCashFlowNumber item = UniqueCashFlows.CurrentItem as UniqueCashFlowNumber;
             uniqueNumbers.Remove(item);
         }
         catch (Exception ex)
         {
             NotificationRequest.Raise(new Notification()
             {
                 Title   = ApplicationNames.NotificationTitle,
                 Content = $"Beim Löschen von Cashflows trat ein Fehler auf: {ex.Message}"
             });
         }
     }
 }
Ejemplo n.º 5
0
 private void Callback(IConfirmation vm)
 {
     if (vm.Confirmed)
     {
         LoadData();
     }
 }
 private void OnConfirmationResponse(IConfirmation obj)
 {
     if (obj.Confirmed)
     {
         isCombinedCashFlow = true;
     }
 }
Ejemplo n.º 7
0
 internal Default(IConfirmation jobConfirmation, SimulationType simulationType = SimulationType.None)
     : base(childMaker: null, simulationType: simulationType)
 {
     _jobConfirmation = jobConfirmation;
     _resourceDistinctResourceStates = new Dictionary <IActorRef, StateHandle>();
     _dissolveRequested = false;
 }
Ejemplo n.º 8
0
 private void AddSalarySlip(IConfirmation Data)
 {
     if (Data.Confirmed)
     {
         OnPropertyChanged("SalarySlipList");
     }
 }
Ejemplo n.º 9
0
 private void NavigateToInsureeListView(IConfirmation confirmation)
 {
     _logger.Debug($"Cancel AddOrEditInsuree confirmed: {confirmation.Confirmed}");
     if (confirmation.Confirmed)
     {
         _navigationAppService.NavigateTo(ContentNames.InsureeListView);
     }
 }
Ejemplo n.º 10
0
 protected virtual void OnConnectionOptionsResponse(IConfirmation context)
 {
     if (context.Confirmed)
     {
         // save it
     }
     // otherwise do nothing
 }
Ejemplo n.º 11
0
 private void FinalizedBucket(IConfirmation fJobConfirmation)
 {
     if (_jobInProgress.UpdateJob(fJobConfirmation))
     {
         _jobInProgress.DissolveBucketToQueue(Agent.CurrentTime);
         RequeueIfNecessary();
     }
 }
 private void OnConfirmNewCashFlow(IConfirmation obj)
 {
     if (obj.Confirmed)
     {
         cashFlowInformation = new CashFlowInformation();
         CreateCashFlowInformation(cashFlowInformation);
     }
 }
Ejemplo n.º 13
0
 private void OnShutDownDialogEnded(IConfirmation shutdownConfirmation)
 {
     if (shutdownConfirmation.Confirmed)
     {
         Log($"Sending shutdown", Category.Info, Priority.None);
         _eventAggregator.GetEvent <ShutdownEvent>().Publish();
     }
 }
Ejemplo n.º 14
0
 private async void OnConfirmFileOpen(IConfirmation obj)
 {
     if (!obj.Confirmed)
     {
         // close tab
         CloseThisTab();
     }
     workbook = await Task.Run(() => OpenExcelFile());
 }
Ejemplo n.º 15
0
        /// <summary>コモンダイアログを表示します。</summary>
        /// <param name="confirmation">表示するコモンダイアログの設定内容を表すIConfirmation。</param>
        /// <returns>コモンダイアログの戻り値を表すMessageBoxResult。</returns>
        public MessageBoxResult ShowDialog(IConfirmation confirmation)
        {
            MessageBoxResult result = MessageBoxResult.Cancel;

            this.CommonDialogRequest.Raise(confirmation,
                                           r => result = r.Confirmed ? MessageBoxResult.OK : MessageBoxResult.Cancel);

            return(result);
        }
Ejemplo n.º 16
0
 private void OnConfirmTryAgain(IConfirmation obj)
 {
     if (obj.Confirmed)
     {
         ReadCashFlows();
         return;
     }
     // CloseTab
 }
Ejemplo n.º 17
0
 protected void OnMessageControlInteractionRequest(IConfirmation conformation)
 {
     if (conformation.Confirmed)
     {
         System.Windows.MessageBox.Show(conformation.Content.ToString());
     }
     else
     {
         System.Windows.MessageBox.Show("Canceld Dialog");
     }
 }
Ejemplo n.º 18
0
 public bool Set(IConfirmation jobConfirmation, long duration)
 {
     if (IsSet)
     {
         return(false);
     }
     Current   = jobConfirmation;
     StartedAt = jobConfirmation.ScopeConfirmation.GetScopeStart();
     ExpectedResourceIsBusyUntil = jobConfirmation.ScopeConfirmation.GetScopeEnd();
     return(true);
 }
Ejemplo n.º 19
0
        private void OnNewProjectWindowClosed(INotification notification)
        {
            IConfirmation confirmation = notification as IConfirmation;

            if (confirmation.Confirmed)
            {
                Project newProject = confirmation.Content as Project;
                this.session.Projects.Add(newProject);
                newProject.CreateFile();
            }
        }
 private void OnFurtherCashflow(IConfirmation obj)
 {
     if (obj.Confirmed)
     {
         CashFlowInformation.CashFlowDataEntered = true;
         PrepareCashFlow prepareCashFlow = new PrepareCashFlow()
         {
             cfInfo = cashFlowInformation
         };
         eventAggregator.GetEvent <PrepareCashFlowEvent>().Publish(prepareCashFlow);
     }
 }
Ejemplo n.º 21
0
        public static void PublishBucketResult(Agent agent, IConfirmation jobConfirmation, long start)
        {
            var pub = new FBucketResult(key: jobConfirmation.Job.Key
                                        , creationTime: 0
                                        , start: start
                                        , end: agent.CurrentTime
                                        , originalDuration: jobConfirmation.Job.Duration
                                        , productionAgent: ActorRefs.Nobody
                                        , capabilityProvider: jobConfirmation.CapabilityProvider.Name);

            //TODO NO tracking
            agent.Context.System.EventStream.Publish(@event: pub);
        }
        public RegistroAddViewModel(RegistroViewModel registroViewModel, IConfirmation confirmation)
        {
            this._ParentRegistro = registroViewModel;
            this._RegistroRepository = new Protell.DAL.Repository.RegistroRepository();
            this._EstructuraRepository = new Protell.DAL.Repository.EstructuraRepository();
            this._CondProRepository = new Protell.DAL.Repository.CondProRepository();
            this._PuntoMedicionMaxMinRepository = new Protell.DAL.Repository.PuntoMedicionMaxMinRepository();
            this._Confirmation = confirmation;

            this.GetNewRegistro();

            this.LoadInfo();
        }
Ejemplo n.º 23
0
        private void SetConfirmation(IConfirmation confirmation)
        {
            if (_confirmation != null)
            {
                _confirmation.AcceptSelected -= Confirmation_AcceptSelected;
                _confirmation.RejectSelected -= Confirmation_RejectSelected;
                _confirmation.CancelSelected -= Confirmation_CancelSelected;
            }

            _confirmation = confirmation;
            _confirmation.AcceptSelected += Confirmation_AcceptSelected;
            _confirmation.RejectSelected += Confirmation_RejectSelected;
            _confirmation.CancelSelected += Confirmation_CancelSelected;
        }
Ejemplo n.º 24
0
        private void OnNewTilesetWindowClosed(INotification notification)
        {
            IConfirmation confirmation = notification as IConfirmation;

            if (Mouse.OverrideCursor == Cursors.Pen)
            {
                Mouse.OverrideCursor = null;
            }
            if (confirmation.Confirmed)
            {
                TilesetModel tilesetModel = confirmation.Content as TilesetModel;
                this.session.CurrentTilesets.Value.Add(tilesetModel);
            }
        }
Ejemplo n.º 25
0
        private void OnNewTilesetWindowClosed(INotification notification)
        {
            IConfirmation confirmation = notification as IConfirmation;

            if (Mouse.OverrideCursor == Cursors.Pen)
            {
                Mouse.OverrideCursor = null;
            }
            if (confirmation.Confirmed)
            {
                TilesetModel messageTilesetModel = confirmation.Content as TilesetModel;
                this.Session.CurrentTilesets.Value.Add(messageTilesetModel);
                this.TilesetModel.Value = messageTilesetModel;
                ChangeItemModel(this.TilesetModel.Value);
            }
        }
Ejemplo n.º 26
0
        private void FinalizedBucket(IConfirmation jobConfirmation)
        {
            Agent.DebugMessage($"Finalized {_jobConfirmation.Job.Name} received.", CustomLogger.JOB, LogLevel.Warn);
            _jobConfirmation = jobConfirmation;

            foreach (var resourceRef in _resourceProcessingStates.Keys)
            {
                Agent.Send(instruction: BasicInstruction.FinalBucket.Create(jobConfirmation, target: resourceRef));
            }
            _finalOperations = new Queue <FOperation>(((FBucket)_jobConfirmation.Job).Operations.OrderByDescending(prio => prio.Priority.Invoke(Agent.CurrentTime)));
            _processingStart = Agent.CurrentTime;
            foreach (var resource in _resourceProcessingStates)
            {
                Agent.DebugMessage($"{resource.Key.Path.Name} in state {resource.Value.CurrentState.ToString()}");
            }
            DoWork();
        }
Ejemplo n.º 27
0
        public static IBehaviour Get(SimulationType simType, IConfirmation jobConfirmation)
        {
            IBehaviour behaviour;

            switch (simType)
            {
            case SimulationType.Default:
                behaviour = Default(jobConfirmation);
                break;

            default:
                behaviour = Default(jobConfirmation);
                break;
            }

            return(behaviour);
        }
Ejemplo n.º 28
0
        private void OnNewMapWindowClosed(INotification notification)
        {
            IConfirmation confirmation = notification as IConfirmation;

            if (confirmation.Confirmed)
            {
                Map newMap = confirmation.Content as Map;
                if (this.Project != null)
                {
                    newMap.Project.Value = this.Project;
                    this.Project.Maps.Add(newMap);
                }
                else
                {
                    this.session.Maps.Add(newMap);
                }
            }
        }
Ejemplo n.º 29
0
        /// <summary>
        /// returns true if the update was successful
        /// </summary>
        /// <param name="jobConfirmation"></param>
        /// <returns></returns>
        public bool UpdateJob(IConfirmation jobConfirmation)
        {
            if (IsSet && Current.Key.Equals(jobConfirmation.Key))
            {
                Current = Current.UpdateJob(jobConfirmation.Job);
                //ExpectedResourceIsBusyUntil = jobConfirmation.ScopeConfirmation.GetScopeEnd();
                return(true);
            }

            var(key, ready) = ReadyElements.FirstOrDefault(x => x.Value.Key.Equals(jobConfirmation.Key));
            if (ready == null)
            {
                return(false);
            }
            ReadyElements.Remove(key);
            ReadyElements.Add(key, ready.UpdateJob(jobConfirmation.Job));
            return(true);
        }
Ejemplo n.º 30
0
        private void OnNewLayerWindowClosed(INotification notification)
        {
            // TODO change current layer on the layer list
            IConfirmation confirmation = notification as IConfirmation;

            if (confirmation.Confirmed)
            {
                Layer layer = confirmation.Content as Layer;
                if (this.Map.CurrentLayer.Value != null)
                {
                    this.Map.CurrentLayer.Value.AddLayer(layer);
                    this.Map.CurrentLayer.Value = layer;
                }
                else
                {
                    this.Map.AddLayer(layer);
                }
            }
        }
Ejemplo n.º 31
0
        private void OnNewTilesetWindowClosed(INotification notification)
        {
            IConfirmation confirmation = notification as IConfirmation;

            if (Mouse.OverrideCursor == Cursors.Pen)
            {
                Mouse.OverrideCursor = null;
            }
            if (confirmation.Confirmed)
            {
                TilesetModel tilesetModel = confirmation.Content as TilesetModel;
                this.Session.CurrentTilesets.Value.Add(tilesetModel);

                OpenDockMessage message = new OpenDockMessage(typeof(ItemEditorViewModel));
                message.IgnoreIfExists = true;
                message.Content        = tilesetModel;
                this.eventAggregator.GetEvent <OpenDockEvent>().Publish(message);
            }
        }
Ejemplo n.º 32
0
        private void OnConfirmationResponse(IConfirmation obj)
        {
            if (!obj.Confirmed)
            {
                return;
            }

            // Investor wird gelöscht
            try
            {
                investorAccess.RemoveInvestor(Investor);
            }
            catch (Exception ex)
            {
                NotificationRequest.Raise(new Notification()
                {
                    Title   = ApplicationNames.NotificationTitle,
                    Content = ex.Message
                });
                return;
            }


            // InvestorSelection wird informiert

            InvestorCollectionAction parameter = new InvestorCollectionAction()
            {
                action   = CollectionAction.removed,
                investor = Investor
            };

            eventAggregator.GetEvent <InvestorCollectionActionEvent>().Publish(parameter);

            // Unsubscribe Event(s)
            eventAggregator.GetEvent <AccountCollectionEvent>().Unsubscribe(accountListToken);

            // get the current active view (myself) and remove that view from tabcontrol
            var view = regionManager.Regions[RegionNames.TabControlRegion].ActiveViews.ElementAt(0);

            regionManager.Regions[RegionNames.TabControlRegion].Remove(view);
        }
Ejemplo n.º 33
0
 private async void OnFileUpdated(IConfirmation context)
 {
     if (context.Confirmed)
     {
         await RefreshAsync();
     }
 }
        // ***************************** ***************************** *****************************
        // constructor
        public AsuntoModViewModel(AsuntoModel p, AsuntoViewModel AsuntoViewModel, IConfirmation confirmation)
        {
            this._ParentAsunto = AsuntoViewModel;
            this._P = p;
            this._Confirmation = confirmation;
            this._AsuntoRepository = new GestorDocument.DAL.Repository.AsuntoRepository();
            this._UbicacionRepository = new GestorDocument.DAL.Repository.UbicacionRepository();
            this._InstruccionRepository = new GestorDocument.DAL.Repository.InstruccionRepository();
            this._PrioridadRepository = new GestorDocument.DAL.Repository.PrioridadRepository();
            this._StatusAsuntoRepository = new GestorDocument.DAL.Repository.StatusAsuntoRepository();
            this._SignatarioRepository = new GestorDocument.DAL.Repository.SignatarioRepository();
            this._SignatarioExternoRepository = new GestorDocument.DAL.Repository.SignatarioExternoRepository();
            this._DestinatarioRepository = new GestorDocument.DAL.Repository.DestinatarioRepository();
            this._DestinatarioCcpRepository = new GestorDocument.DAL.Repository.DestinatarioCcpRepository();
            this._DocumentosRepository = new GestorDocument.DAL.Repository.DocumentosRepository();
            this._ExpedienteRepository = new GestorDocument.DAL.Repository.ExpedienteRepository();
            this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
            this._SyncDocsRepository = new GestorDocument.DAL.Repository.SyncDocsRepository();

            this.LoadInfo();

            this.GetAsunto();

            this.GetRol();

            this.GetUsuario();

            this.GetTurno();

            this.GetExpediente();

            //BUSQUEDA DE ASUNTOS
            this.Busqueda = new BusquedaAsuntoTurnoViewModel(this._Rol);

            this.GetVisible();
        }
Ejemplo n.º 35
0
 private void DeleteCategory(IConfirmation confirmation)
 {
     if (confirmation.Confirmed)
     {
         _client.Context.DeleteObject(SelectedCategory);
         _client.Context.SaveChanges();
         Categories.Remove(SelectedCategory);
     }
 }
Ejemplo n.º 36
0
 private void AddCategory(IConfirmation confirmation)
 {
     System.Windows.Controls.TextBox tb = confirmation.Content as System.Windows.Controls.TextBox;
     if(confirmation.Confirmed && !string.IsNullOrEmpty(tb.Text))
     {
         Category newCategory = new Category();
         newCategory.Name = tb.Text;
         _client.Context.AddToCategories(newCategory);
         _client.Context.SaveChanges();
         Categories.Add(newCategory);
     }
 }
 public void OnSaveConfirmed(IConfirmation confirmation)
 {
     if (confirmation.Confirmed)
     {
         this.repository.Update(this.SelectedPerson);
         this.eventAggregator.GetEvent<PersonDataChangedEvent>().Publish(this.SelectedPerson);
     }
 }
 // ***************************** ***************************** *****************************
 // constructor que recibe un viewmodel
 public RegistroModViewModel(RegistroViewModel registroViewModel, RegistroModel p, IConfirmation confirmation)
 {
     this._ParentRegistro = registroViewModel;
     this._RegistroRepository = new Protell.DAL.Repository.RegistroRepository();
     //this._PuntoMedicionRepository = new Protell.DAL.Repository.PuntoMedicionRepository();
     this._PuntoMedicionMaxMinRepository = new Protell.DAL.Repository.PuntoMedicionMaxMinRepository();
     this._EstructuraRepository = new Protell.DAL.Repository.EstructuraRepository();
     this._CondProRepository = new Protell.DAL.Repository.CondProRepository();
     this._Confirmation = confirmation;
     this._Registro = new RegistroModel()
     {
         IdRegistro = p.IdRegistro,
         PUNTOMEDICION = new PuntoMedicionModel()
         {
             IdPuntoMedicion = p.IdPuntoMedicion,
             PuntoMedicionName = p.PUNTOMEDICION.PuntoMedicionName,
             Visibility = p.PUNTOMEDICION.Visibility,
             UIVisible = p.PUNTOMEDICION.UIVisible,
             TIPOPUNTOMEDICION = new TipoPuntoMedicionModel()
             {
                 TipoPuntoMedicionName = p.PUNTOMEDICION.TIPOPUNTOMEDICION.TipoPuntoMedicionName
             },
             UNIDADMEDIDA = new UnidadMedidaModel()
             {
                 UnidadMedidaName = p.PUNTOMEDICION.UNIDADMEDIDA.UnidadMedidaName,
                 UnidadMedidaShort = p.PUNTOMEDICION.UNIDADMEDIDA.UnidadMedidaShort
             }
         },
         FechaCaptura = p.FechaCaptura,
         HoraRegistro = p.HoraRegistro,
         DiaRegistro = p.DiaRegistro,
         Valor = p.Valor,
         AccionActual = p.AccionActual,
         IsActive = p.IsActive,
         Condicion = new CondProModel()
         {
             IdCondicion = p.Condicion.IdCondicion,
             CondicionName= p.Condicion.CondicionName,
             PathCodicion = p.Condicion.PathCodicion
         }
     };
     this.FechaCapturaActual = this.Registro.FechaCaptura;
     this.HoraMilitarActual = this.Registro.HoraMilitar;
     this.LoadInfoGrid();
 }
Ejemplo n.º 39
0
 private void NavigateToInsureeListView(IConfirmation confirmation)
 {
     _logger.Debug($"Cancel AddOrEditInsuree confirmed: {confirmation.Confirmed}");
     if (confirmation.Confirmed)
     {
         _navigationAppService.NavigateTo(ContentNames.InsureeListView);
     }
 }
        public TrancingAsuntoTurnoViewModel(AsuntoNotificacionesViewModel asuntoNotificacionesViewModel, AsuntoModel selectedAsuntoTurno, IConfirmation confirmation, IDownloadFile download)
        {
            this._ParentAsunto = asuntoNotificacionesViewModel;
            this._SelectedAsuntoTurno = selectedAsuntoTurno;
            this._Confirmation = confirmation;
            this._Download = download;
            this.TipoUnidadNormativa = this._ParentAsunto._PantallaInicioViewModel._MainWindowViewModel.Usuario.Rol.Organigrama.TipoUnidadNormativa;
            this._TurnoRepository = new GestorDocument.DAL.Repository.TurnoRepository();
            this._ExpedienteRepository = new GestorDocument.DAL.Repository.ExpedienteRepository();
            this._DestinatarioRepository = new GestorDocument.DAL.Repository.DestinatarioRepository();
            this._DocumentosRepository = new GestorDocument.DAL.Repository.DocumentosRepository();
            this._Turnos = new ObservableCollection<TurnoModel>();
            this._SeguimientoTurnos = new ObservableCollection<TurnoModel>();
            this._SyncDocsRepository = new GestorDocument.DAL.Repository.SyncDocsRepository();
            this._SeguimientoTurnos = new ObservableCollection<TurnoModel>();
            this._SignatarioExternoRepository = new GestorDocument.DAL.Repository.SignatarioExternoRepository();
            this.SignatarioExterno = new ObservableCollection<SignatarioExternoModel>();
            this._SuccessPathServer = ConfigurationManager.AppSettings["ServerDocsFolder"].ToString();

            this.GetRol();

            this.GetUsuario();

            this.LoadInfoGrid();

            this.GetAsunto();

            this.GetTurno();

            this.GetExpediente();
        }
Ejemplo n.º 41
0
        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();
        }