Exemplo n.º 1
0
        public SplashScreen(ISupportSplashScreen owner)
        {
            this.splashOwner = owner;

            this.DoubleBuffered = true;

            // The splash screen should not take focus.
            this.SetStyle(ControlStyles.Selectable, false);
            this.SetStyle(ControlStyles.StandardClick, false);

            // Required for Windows Form Designer support
            InitializeComponent();

            this.InitializeUI();
        }
Exemplo n.º 2
0
 private void UnHookEvents()
 {
     this.splashOwner.InitializationStatusChanged -= new InitializationStatusChangedEventHandler(this.Application_InitializationStatusChanged);
     this.splashOwner.InitializationComplete      -= new EventHandler(this.Application_InitializationComplete);
     this.splashOwner = null;
 }