프로그래밍/C#

event Action

Lucky-John 2021. 11. 2. 12:59

event Action<String, bool> eventAction;

 

eventAction += Func_eventAction;

 

private void Func_eventAction(String name, bool bFirst)
{

}

 

private void click(object sender, RoutedEventArgs e)

{

    if(eventAction  != null)

    { 

        String name = "test";

        bool bFirst = false;

        eventAction(name, bFirst); 

    }

}

 

댓글수0