string ShowDialog(DynamicSkinType type)
        {
            OpenFileDialog dialog = new OpenFileDialog();

            dialog.FileName = GetLibraryName(type);
            dialog.ShowDialog();
            return(dialog.FileName);
        }
        void LoadDynamicSkin(DynamicSkinType type)
        {
            string fileName = ShowDialog(type);

            if (File.Exists(fileName))
            {
                Assembly SampleAssembly = Assembly.LoadFile(fileName);
                DevExpress.Skins.SkinManager.Default.RegisterAssembly(SampleAssembly);
                PopulateListBox();
            }
            else
            {
                MessageBox.Show(String.Format("File not found ({0})", fileName));
            }
        }
 static string GetLibraryName(DynamicSkinType type)
 {
     return(String.Format("DevExpress.{0}Skins{1}.dll", type, AssemblyInfo.VSuffix));
 }