예제 #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);
        }
        private void ElementPadCtrl1_OnClickEventHandler(PropertyPage ctrl)
        {
            FormElementConfiguration frm = new FormElementConfiguration();

            frm.PropertyConfigurator = ctrl.PropertyConfigurator;
            frm.ShowDialog();
            if (frm.IsCancel == false)
            {
                CommonPropertyConfigurator configurator = (CommonPropertyConfigurator)frm.PropertyConfigurator;
                configurator.Fill(ctrl.Properties);
                SelectedpropertyPage = ctrl;
            }
            else
            {
                SelectedpropertyPage = null;
            }
        }