samedi 5 août 2017

using main project classes function within dll

I have a project that uses class library and I need my class communicate with host application. how can I use main project classes methods?

I load my assembly using reflection into my app domain.

private void myButton(object sender, RoutedEventArgs e)
{
   MainAppNameSpace.handeling_buttons.MethodOfClass(sender as Button);
}





Aucun commentaire:

Enregistrer un commentaire