Example #1
0
        void setSystemFolders()
        {
            Array systemFolderIds = Enum.GetValues(typeof(domain.sm.enums.SystemFolderEnum));
            string[] systemFolderNames = Enum.GetNames(typeof(domain.sm.enums.SystemFolderEnum));

            SystemFolders = new List<SystemFolder>();

            for (int i = 0; i < systemFolderNames.Length; i++)
            {
                SystemFolder folder = new SystemFolder() { Id = (Int32)systemFolderIds.GetValue(i), Name = systemFolderNames[i] };
                SystemFolders.Add(folder);
            }
        }
Example #2
0
        void setSystemFolders()
        {
            Array systemFolderIds = Enum.GetValues(typeof(domain.sm.enums.SystemFolderEnum));

            string[] systemFolderNames = Enum.GetNames(typeof(domain.sm.enums.SystemFolderEnum));

            SystemFolders = new List <SystemFolder>();

            for (int i = 0; i < systemFolderNames.Length; i++)
            {
                SystemFolder folder = new SystemFolder()
                {
                    Id = (Int32)systemFolderIds.GetValue(i), Name = systemFolderNames[i]
                };
                SystemFolders.Add(folder);
            }
        }