private static void AtLeastOneDataSourceDir(ConfigPathCollection coll)
        {
            if (coll == null)
            {
                return;
            }
            BindingList <ConfigPath> list = coll.List;

            if (list == null)
            {
                return;
            }
            //
            for (int i = 0; i < list.Count; i++)
            {
                ConfigPath cp = list[i];
                if (cp.Type == (int)ConfigPathTypeEnum.DataStores)
                {
                    return;
                }
            }
            list.Add(ConfigPathCollection.NewTemplate( ));
        }
        public static ConfigPathCollection NewCollectionTemplate()
        {
            ConfigPathCollection c = new ConfigPathCollection( );

            #region --- DATASTORE FOLDERS... ---
            {
                var o = ConfigPathCollection.NewTemplate( );
                c.List.Add(o);
            }
            {
                DriveInfo[] drives = DriveInfo.GetDrives( );
                foreach (DriveInfo drive in drives)
                {
                    ConfigPath o = new ConfigPath( )
                    {
                        Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                        IsActive = true,
                        ShortCut = (int)ConfigPath.PathTypeShortCutEnum.Custom,
                        PathDir  = drive.Name + "temp"
                    };
                    o.Normalize( );
                    c.List.Add(o);
                }
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.ApplicationData,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.CommonApplicationData,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.CommonDesktopDirectory,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.CommonDocuments,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.Desktop,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.DesktopDirectory,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.LocalApplicationData,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.MyDocuments,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            {
                ConfigPath o = new ConfigPath( )
                {
                    Type     = (int)ConfigPath.ConfigPathTypeEnum.DataStores,
                    IsActive = true,
                    ShortCut = (int)ConfigPath.PathTypeShortCutEnum.UserProfile,
                    PathDir  = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
                };
                o.Normalize( );
                c.List.Add(o);
            }
            #endregion

            #region --- TEMPORARY FOLDERS... ---
            {
                DriveInfo[] drives = DriveInfo.GetDrives( );
                foreach (DriveInfo drive in drives)
                {
                    ConfigPath o = new ConfigPath( )
                    {
                        Type     = (int)ConfigPath.ConfigPathTypeEnum.Temporary,
                        IsActive = true,
                        ShortCut = (int)ConfigPath.PathTypeShortCutEnum.Custom,
                        PathDir  = drive.Name + "temp"
                    };
                    c.List.Add(o);
                }
            }
            #endregion

            return(c);
        }