Пример #1
0
        public WallpaperManagerForm()
        {
            WallpaperData.WallpaperManagerForm = this; //? this needs to be at the very front for a few other initializers

            InitializeComponent();

            Application.ApplicationExit += OnApplicationExit;
            this.Load    += OnLoad;
            this.Resize  += OnResize;
            this.Closing += OnClosing;

            DisplayData.Initialize();
            InitializeDisplayTabControl();

            InitializeImageSelector();
            InitializeImageInspector();

            WallpaperPathing.Validate();     // ensures that all needed folders exist
            WallpaperData.Initialize(false); // loads in all necessary data
            OptionsData.Initialize();

            InitializeWallpapers();
            InitializeTimer();
            InitializeKeys();
            InitializeNotifyIcon();
        }