|
Ok, i have a method called OnSelectionChanged to grab the change of selection in the treeview. I am listening/calling this method by "treeView.Selection.Changed += OnSelectionChanged;"
I have 2 files, Main.cs which starts up the second window, MainWindow.cs. All the code is in MainWindow.cs.
Theres an example for this event in the monodocs and the ONLY difference (to at very least get into the method OnSelectionChanged) is that i am calling treeView.Selection.Changed .. etc in my "Public MainWindow" whereas in the example it is getting called inside a "Static Void Main".
As far as i'm concerned from a C# perspective this should be working ...
Is there something special about calling this listener/event from static void main and not from "public MainWindow" in my mainWindow.cs file ?
|