public Form1() { InitializeComponent(); logger = new Logger(); openSkinDialog.Filter = "Audiosurf Skins (.askin)|*.askin"; openSkinDialog.DefaultExt = ".askin"; SetSkinPartChecked(); skySpherePreview = new[] { skySpherePic, SkyspherePic2, SkyspherePic3 }; tilesTexturesImageGroup = new[] { tilePic1, tilePic2, tilePic3, tilePic4 }; particlesTexturesImageGroup = new[] { partPic1, partPic2, partPic3 }; ringsTexturesImageGroup = new[] { ringPic1, ringPic2, ringPic3, ringPic4 }; hitsImageGroup = new[] { hitPic1, hitPic2 }; pictureBoxes = new[] { skySpherePreview, tilesTexturesImageGroup, particlesTexturesImageGroup, ringsTexturesImageGroup, hitsImageGroup }; InternalWorker.SetUpDefaultSettings(); InternalWorker.InitializeEnvironment(); skinPackager = new SkinPackager(); currentlyInstallLabel.Text = "searching skin..."; toolTip1.SetToolTip(cleanInstallCheck, "When installing in Clean Installation mode, the program will automatically delete all old Audiosurf textures, install the default skin and over it the one you choose."); packFolderIntoSkinButtonBehaviour = new Dictionary <Button, Action <object, EventArgs> >() { { button1, PackCurrentTextureFolderIntoSkin }, { button3, PackAnyFolderIntoSkin } }; GetCurrentlyInstalledSkinBehaviourRoute(); new Thread(delegate() { Thread.Sleep(10); LoadSkinAsync(); }).Start(); }
public void RunWorkerAsync() { InternalWorker.RunWorkerAsync(); }