SplashScreen.Dispose C# (CSharp) Метод

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void
    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }

        base.Dispose(disposing);
    }

Usage Example

Пример #1
0
        public void Start(string[] args)
        {
            // TODO handle command line arguments....

            _mainForm           = new MainForm();
            _mainForm.Disposed += (o, e) =>
            {
                LiteDevelopSettings.Instance.Save();
                Current = null;
            };

            _worker         = new BackgroundWorker();
            _worker.DoWork += (o, e) =>
            {
                InitializeExtensionHost();
                LoadExtensions();
            };
            _worker.RunWorkerCompleted += (o, e) =>
            {
                OnInitializedApplication(EventArgs.Empty);
                _splashScreen.Dispose();
            };

            _splashScreen          = new SplashScreen();
            _splashScreen.FadedIn += (o, e) =>
            {
                _worker.RunWorkerAsync();
            };

            Application.Run(_splashScreen);
            Application.Run(_mainForm);
        }
All Usage Examples Of SplashScreen::Dispose