void genericMaterial_StatusUpdated(object sender, EventArgs e)
        {
            GenericMaterial g = (sender as GenericMaterial);
            Material        currentMaterial = g.GetCurrentMaterial();

            //POSSIBLE BUG
            currentObject.SetTexture(g.Index, currentMaterial.FullPath, openGLControl.OpenGL);
            //InitializeMaterials();
            //InitializePrices();
        }
        void customizeMaterial_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            int             index           = (sender as CustomizeMaterial).Index;
            Material        oldMaterial     = (sender as CustomizeMaterial).GetCurrentMaterial();
            GenericMaterial genericMaterial = new GenericMaterial(materials, index, true);

            genericMaterial.StatusUpdated += genericMaterial_StatusUpdated;
            genericMaterial.ShowDialog();
            Material currentMaterial = genericMaterial.GetCurrentMaterial();
            int      i = GetIndexOfMaterial(oldMaterial);

            selectedObjectMaterials[i] = new WorldObjectMaterial(currentMaterial, selectedObjectMaterials[i].SurfaceNeeded);
            InitializeMaterials();
            InitializePrices();
        }