Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 manual -> Beast Practices -> Responding to user events question

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

    NT8 manual -> Beast Practices -> Responding to user events question

    Please, look at screenshot.
    Why methods have different names?
    Is this mistake, or there is some logic behind this?
    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello,

    Thank you for the post.

    In this example, there are Two events being subscribed/unsubscribed (two different objects with the same event type). Generally, each event handler would have its own void method to receive the event arguments when the event happens.

    Because the Event Args are likely different between events and they are not interchangeable each would require the specific void method with the correct overload parameters.

    In this specific example, the EventArgs happen to be the same but it would be best practice to have two separate method bodies so you know what void is executing the code for which mouse down event.

    I look forward to being of further assistance.

    Comment


      #3
      Oh, I'm sorry Jesse, for vague question.

      I mean why
      doCustomWPFControlClickEvent differ form DoCustomWPFControlClickEvent

      and

      doUserClickedChartPanelEvent differ form DoUserClickedChartPanelEvent

      I mean difference in first letter: big and small letter "D".
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello,

        This is likely just the original author of this sample has just left one as a lower case, you can name a Method any way you would like so long as it is a valid name for a method.

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        561 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        325 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X