//Used to set the instance of the current class public static void setcurrentclass(CurrentPageModel currentclass) { _class = currentclass; }
//Constructor public CurrentPageModel() { _currentPage = "0"; //Used when initialize to set the page to Page 0 _class = this; //Save the current class in a variable to use as static reference }