For my WPF-application (using c#), i created a static method (public static void refreshGUI(string component, int getal)) in my "MainWindow.xaml.cs".
But i can't access members or non-static methods...?!
So i wrote this code to access everything in my namespace:
public static DomoticaApplicatie.MainWindow da = new DomoticaApplicatie.MainWindow();
But when I use it, it give me an error
'The invocation of the constructor on type 'DomoticaApplicatie.MainWindow' that matches the specified binding constraints threw an exception.' Line number '10' and line position '172'.
Can someone help me?
View Complete Post