string DoMapPathEvent(string path) { if (MapPathEvent != null) { MapPathEventArgs args = new MapPathEventArgs(path); foreach (MapPathEventHandler evt in MapPathEvent.GetInvocationList()) { evt(this, args); if (args.IsMapped) { return(args.MappedPath); } } } return(null); }
string DoMapPathEvent (string path) { if (MapPathEvent != null) { MapPathEventArgs args = new MapPathEventArgs (path); foreach (MapPathEventHandler evt in MapPathEvent.GetInvocationList ()) { evt (this, args); if (args.IsMapped) return args.MappedPath; } } return null; }