Пример #1
0
        public void ShowConfigurationWindow()
        {
            IElementConfigurator configurator = (IElementConfigurator)PropertyConfigurator;

            configurator.Display(this.Properties);

            FormElementConfiguration form = new FormElementConfiguration();

            form.PropertyConfigurator = PropertyConfigurator;
            form.ShowDialog();

            configurator.Fill(Properties);
            this.Drawer.Draw(Properties);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ElementConfiguration"/> class.
 /// </summary>
 /// <param name="backendFieldType">Type of the backend field.</param>
 /// <param name="elementConfigurator">The element configurator.</param>
 public ElementConfiguration(Type backendFieldType, IElementConfigurator elementConfigurator)
 {
     this.BackendFieldType    = backendFieldType;
     this.ElementConfigurator = elementConfigurator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ElementConfiguration"/> class.
 /// </summary>
 /// <param name="backendFieldType">Type of the backend field.</param>
 /// <param name="elementConfigurator">The element configurator.</param>
 public ElementConfiguration(Type backendFieldType, IElementConfigurator elementConfigurator)
 {
     this.BackendFieldType = backendFieldType;
     this.ElementConfigurator = elementConfigurator;
 }