//Подписка на модель с данными о количестве и процентном соотношении лицензий 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)); }
public UpdaterNewData(HandModifiedDataState state) { this.state = state; }