Open cassio-vo opened 2 years ago
You would need two handlers.
One for the green icon :
protected override bool CanShowOverlay(string path, FILE_ATTRIBUTE attributes) {
FileInfo fiPath = new FileInfo(path);
return (fiPath.Extension.Equals(".txt"));
}
protected override Icon GetOverlayIcon() {
return Properties.Resources.GreenIcon;
}
And another one for the blue icon :
protected override bool CanShowOverlay(string path, FILE_ATTRIBUTE attributes) {
FileInfo fiPath = new FileInfo(path);
return !(fiPath.Extension.Equals(".txt"));
}
protected override Icon GetOverlayIcon() {
return Properties.Resources.BlueIcon;
}
if is txt file i want show a green icon, but if isn't a txt file i want show a blue icon.