Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Save/Restore in NTTabPage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Save/Restore in NTTabPage

    I simply tried to compile the NTTabPage Class example.
    A custom addon has to implement save/restore, if not we have "<xxx> does not implement abstract member 'NinjaTrader.Gui.Tools.NTTabPage.Restore".

    But if the save/restore classes are like:
    public override void Restore(XElement element) {...
    the error is then:
    "Cannot change access modifier when overriding 'protected' inherited member NinjaTrader.Gui.Tools.NTTabPage.Restore(System.... )"

    So the example in the Help documentation is not accurate (yet), or it should work and I'm missing something?

    #2
    The documentation needs to be updated and will be shortly. I've attached a sample AddOn which implements these methods correctly.
    Attached Files
    MatthewNinjaTrader Product Management

    Comment


      #3
      Originally posted by sam028 View Post
      I simply tried to compile the NTTabPage Class example.
      A custom addon has to implement save/restore, if not we have "<xxx> does not implement abstract member 'NinjaTrader.Gui.Tools.NTTabPage.Restore".

      But if the save/restore classes are like:
      public override void Restore(XElement element) {...
      the error is then:
      "Cannot change access modifier when overriding 'protected' inherited member NinjaTrader.Gui.Tools.NTTabPage.Restore(System.... )"

      So the example in the Help documentation is not accurate (yet), or it should work and I'm missing something?
      How about:
      protected override void Restore(){}
      ArtSenior Software Developer

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      41 views
      0 likes
      Last Post alifarahani  
      Working...
      X