how to pass into event the overload of c # wpf methods, the situation is a button (wpf, mvvm) and there is a textBox 5pcs, you need to call eventom one of the overloaded methods

public void Method1(string a, string b) { } public void Method1(string a, string b, string c) { } 

It can be possible to organize an "event Action" (maybe throw up examples or a useful article)

  • one
    It's not entirely clear what your problem is. There is an event. On this event we sign a method that is acc. to the delegate of this event, later in this method we call one of your overloaded methods. So? - Bulson
  • “You need to call eventom” - and you can decrypt? - VladD
  • So! Just how to implement it? (In the code) two event to do, and for each event your delegate? - DEVELOPER
  • In the subscriber, do the necessary checks and call one or another method. It is not clear what the problem is. - Andrei NOP
  • How can I send 3 parameters to the delegate with two parameters? - DEVELOPER

0