1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
if (rule.InheritanceFlags == InheritanceFlags.None && rule.PropagationFlags == PropagationFlags.None)
{
lvi.SubItems.Add("Ce dossier seulement"); // This Folder only
}
else if (rule.InheritanceFlags == InheritanceFlags.None && rule.PropagationFlags == PropagationFlags.NoPropagateInherit)
{
lvi.SubItems.Add("Ce dossier seulement"); // This Folder only
}
else if (rule.InheritanceFlags == InheritanceFlags.ContainerInherit || rule.InheritanceFlags == InheritanceFlags.ObjectInherit && rule.PropagationFlags == PropagationFlags.None)
{
lvi.SubItems.Add("Ce dossier, les sous-dossiers et les fichiers"); // This Folder, Subfolders and Files
}
else if (rule.InheritanceFlags == InheritanceFlags.ContainerInherit || rule.InheritanceFlags == InheritanceFlags.ObjectInherit && rule.PropagationFlags == PropagationFlags.NoPropagateInherit)
{
lvi.SubItems.Add("Ce dossier, les sous-dossiers et les fichiers"); // This Folder, Subfolders and Files
}
else if (rule.InheritanceFlags == InheritanceFlags.ContainerInherit && rule.PropagationFlags == PropagationFlags.None)
{
lvi.SubItems.Add("Ce dossier et les sous-dossiers"); // This Folder and Subfolders
}
else if (rule.InheritanceFlags == InheritanceFlags.ObjectInherit && rule.PropagationFlags == PropagationFlags.None)
{
lvi.SubItems.Add("Ce dossier et les fichiers"); // This Folder and Files
}
else if (rule.InheritanceFlags == InheritanceFlags.ObjectInherit && rule.PropagationFlags == PropagationFlags.NoPropagateInherit)
{
lvi.SubItems.Add("Ce dossier et les fichiers"); // This Folder and Files
}
else if (rule.InheritanceFlags == InheritanceFlags.ContainerInherit || rule.InheritanceFlags == InheritanceFlags.ObjectInherit && rule.PropagationFlags == PropagationFlags.InheritOnly)
{
lvi.SubItems.Add("Les sous-dossiers et les fichiers seulement"); // Subfolders and Files only
}
else if (rule.InheritanceFlags == InheritanceFlags.ContainerInherit && rule.PropagationFlags == PropagationFlags.InheritOnly)
{
lvi.SubItems.Add("Les sous-dossiers seulement"); // Subfolders only
} |