Details

    • Type: Improvement
    • Status: To Do
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: v5.1.1.0
    • Fix Version/s: v5.4-Dev
    • Labels:

      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", ...

              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:

      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);
      

        Attachments

          Activity

            People

            • Assignee:
              admin Paul Meems
              Reporter:
              admin Paul Meems
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: