Example #1
0
        private void OnAddWelcomeClick(object sender, EventArgs e)
        {
            WizardForm        ctrl = ( WizardForm )Control;
            WizardWelcomePage page = new WizardWelcomePage();

            ctrl.Pages.Add(page);

            IDesignerHost host = (IDesignerHost)GetService(typeof(IDesignerHost));

            if (host != null)
            {
                host.Container.Add(page);
            }
        }
        private void OnAddWelcomeClick( object sender, EventArgs e )
        {
            WizardForm ctrl = ( WizardForm )Control;
              WizardWelcomePage page = new WizardWelcomePage();
              ctrl.Pages.Add( page );

              IDesignerHost host = (IDesignerHost)GetService( typeof( IDesignerHost ) );
              if( host != null ) host.Container.Add( page );
        }