We're updating the issue view to help you get more done. 

Add ProjectOpened event

Description

From https://github.com/MapWindow/MapWindow5/issues/18

Everything would be much easier if in "BasePlugin.cs" had a new event "ProjectOpened" just like there is one for "ProjectClosed", ...

1 2 3 4 5 public event EventHandler<EventArgs> ProjectOpened { add { ProjectOpened_ += value; } remove { ProjectOpened_ -= value; } }

... triggered by the method "public bool Open (string filename, bool silent = true)" from the file "ProjectService.cs" when result is true:

1 2 3 4 5 6 7 8 9 10 11 12 13 public bool Open(string filename, bool silent = true) { ... if (legacy) { result = OpenLegacyProject(filename); } else { result = OpenCore(filename, silent); } if (result) _broadcaster.BroadcastEvent(p => p.ProjectOpened, this, args);

Status

Assignee

Paul Meems

Reporter

Paul Meems

Labels

Fix versions

Affects versions

v5.1.1.0

Priority

Medium