コード例 #1
0
ファイル: WizardDesigner.cs プロジェクト: amedinarcr/fop
 ///<summary>
 ///Initializes the designer with the specified component.
 ///</summary>
 ///
 ///<param name="component">The <see cref="T:System.ComponentModel.IComponent"></see> to associate with the designer. </param>
 public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     AutoResizeHandles = true;
     ISelectionService service = (ISelectionService) GetService(typeof (ISelectionService));
     if (service != null)
     {
         service.SelectionChanged += OnSelectionChanged;
     }
     WizardControl control = (WizardControl) Control;
     wizardDesignerActionList = new WizardDesignerActionList(control);
     actionListCollection.Add(wizardDesignerActionList);
     control.CurrentStepIndexChanged += CurrentStepIndexChanged;
     control.WizardSteps.Inserted += RefreshComponent;
 }
コード例 #2
0
ファイル: WizardDesigner.cs プロジェクト: Deny01/MY_PRO
        ///<summary>
        ///Initializes the designer with the specified component.
        ///</summary>
        ///
        ///<param name="component">The <see cref="T:System.ComponentModel.IComponent"></see> to associate with the designer. </param>
        public override void Initialize(IComponent component)
        {
            base.Initialize(component);
            AutoResizeHandles = true;
            ISelectionService service = (ISelectionService)GetService(typeof(ISelectionService));

            if (service != null)
            {
                service.SelectionChanged += OnSelectionChanged;
            }
            WizardControl control = (WizardControl)Control;

            wizardDesignerActionList = new WizardDesignerActionList(control);
            actionListCollection.Add(wizardDesignerActionList);
            control.CurrentStepIndexChanged += CurrentStepIndexChanged;
            control.WizardSteps.Inserted    += RefreshComponent;
        }