Пример #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();
        }
Пример #2
0
 private void UnHookEvents()
 {
     this.splashOwner.InitializationStatusChanged -= new InitializationStatusChangedEventHandler(this.Application_InitializationStatusChanged);
     this.splashOwner.InitializationComplete      -= new EventHandler(this.Application_InitializationComplete);
     this.splashOwner = null;
 }