예제 #1
0
        //Подписка на модель с данными о количестве и процентном соотношении лицензий
        public void notify()
        {
            HandModifiedDataState result = handModifiedDataModel.getResult();
            ModelingConfig        config = model.getConfig();

            config.UnicSoftwareNames         = result.unicSoftwareNames;
            config.NumberOfPurcharedLicenses = result.numberOfPurcharedLicenses;
            config.Percents        = result.percents;
            config.NotifyObservers = false;
            UpdateConfigCommand <ModelingReport, ModelingConfig> command =
                new UpdateConfigCommand <ModelingReport, ModelingConfig>(model, config);

            command.execute();
            //commandsStore.executeCommand(
            //      new UpdateConfigCommand<ModelingReport, ModelingConfig>(model, config));
        }
예제 #2
0
 public UpdaterNewData(HandModifiedDataState state)
 {
     this.state = state;
 }