public static SmartGridClient SmartGridClientGetInstance() { if (instance == null) { instance = new SmartGridClient(); } return instance; }
/// <summary> /// Returns instance of User class. /// </summary> /// <returns>instance User</returns> public static SmartGridClient SmartGridClientGetInstance(Hashtable loggedUserData) { if (instance == null) { instance = new SmartGridClient(); } SmartGridClient._loggedUser = (UserDto)loggedUserData["userEntered"]; instance.HandleMenuOptions(); return instance; }