Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When Moving AddOns under folders, duplicate names are created in 'New' Menu

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

    When Moving AddOns under folders, duplicate names are created in 'New' Menu

    8.0.0.9 (Standard) - BETA
    1) Duplicate an AddOn by using 'Save As'
    2) Move both AddOns (the new one and the old one) to separate folders
    3) Fix all compilation errors and compile
    4) Open the 'New' Menu.

    Expected
    1) The 'New' Menu should contain AddOns named with the class name of the AddOn: e.g.: NinjaTrader.NinjaScript.AddOns.ZScoreWriter

    Actual
    1) It retains the old previously named class name.

    See attached screenshot.
    Attached Files

    #2
    Hello mmeninger,

    Thank you for writing in.

    Have you modified the menu item header of your duplicated AddOns?

    As it looks like you are using the Sample Add On provided on our forum, you will need to open the SampleAddon duplicated file and change the header.

    I have created a duplicate of SampleAddon called SampleAddon2 in my example.

    Example
    Code:
    protected override void OnWindowCreated(Window window)
    {
         .....
         newMenuItem = new NTMenuItem {Header = "Sample Add On Two", Style = Application.Current.TryFindResource("MainMenuItem") as Style};
         .....
    }
    Once you have compiled, you will see the new name.
    Attached Files
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    3 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X