ObjectEditor.frmMain.backgroundResources_DoWork C# (CSharp) Méthode

backgroundResources_DoWork() private méthode

private backgroundResources_DoWork ( object sender, System e ) : void
sender object
e System
Résultat void
        private void backgroundResources_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            if (Config.LoadGraphics)
            {
                string[] paths = Config.PathGraphics.Split(";".ToCharArray());

                foreach (string path in paths)
                {
                    if (String.IsNullOrEmpty(path))
                        continue;

                    string ext = Path.GetExtension(path).ToLower();
                    if (ext == ".zip")
                        Data.LoadZip(path, Color.FromArgb(11, 0, 11));
                    else if (ext == ".dat")
                        Data.LoadDat(path, Color.FromArgb(11, 0, 11));
                    else
                        Message.Show("Can't process '" + path + "', only .dat or .zip supported.");
                }
            }
        }