Exemple #1
0
 private void ShowSplashScreen()
 {
     if (EditorState.SavedPrefs.ShowSplash)
     {
         (openSplash = new SplashScreen()).Show(this);
         EventHandler CloseSplash = (object sender, EventArgs e) => {
             if (openSplash.Visible)
             {
                 openSplash?.Close();
             }
         };
         ControlUtil.CatchClickAnywhereOnce(this, () => CloseSplash(this, new EventArgs()));
         this.Resize += CloseSplash;
         this.Move   += CloseSplash;
     }
 }