Beispiel #1
0
        /// <summary>
        /// Initializes this configuration tree view for use.
        /// </summary>
        /// <param name="uiController">The <see cref="ScenarioConfigurationUIController" />.</param>
        /// <exception cref="ArgumentNullException"><paramref name="uiController" /> is null.</exception>
        public void Initialize(ScenarioConfigurationUIController uiController)
        {
            ImageList = IconManager.Instance.ConfigurationIcons;

            _uiController = uiController ?? throw new ArgumentNullException(nameof(uiController));
            _uiController.ConfigurationObjectsChanged += (s, e) => UpdateTreeView(e.ChangeSet);
        }
        /// <summary>
        /// Initializes the master scenario configuration control for use.
        /// </summary>
        public void Initialize()
        {
            _uiController = new ScenarioConfigurationUIController(DbConnect.EnterpriseTestConnectionString);
            scenarioConfigurationTreeView.Initialize(_uiController);

            _uiController.Load();
        }