/// <summary> /// Initializes control for new data. /// </summary> /// <param name="environment">The environment.</param> public void Initialize(PluginEnvironment environment) { _hpcrClient = new HpcrConfigurationProxyClient(environment.PluginSettings["HpcrProxy"]); _activityData = new HpcrSimulationData(); _distributionOriginator = string.Empty; serverComboBoxHpcr.Initialize("HPCR"); LoadDistributionTitles(); SetControlsByActivityData(); documentSelectionControl.Initialize(); }
/// <summary> /// Initializes the specified configuration from stored meta data /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="environment">The environment.</param> public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment) { _hpcrClient = new HpcrConfigurationProxyClient(environment.PluginSettings["HpcrProxy"]); _activityData = configuration.GetMetadata <HpcrSimulationData>(); _distributionOriginator = _activityData.SendToDistribution.Originator; documentSelectionControl.Initialize(configuration.Documents); serverComboBoxHpcr.Initialize(configuration.Servers.SelectedServers.FirstOrDefault(), "HPCR"); LoadDistributionTitles(); SetControlsByActivityData(); }