Cannot find method although defined and used? - C#