public static AddClass getInstance() { instance = new AddClass(); if (classService == null) classService = new ClassService(); return instance; }
public static ClassService getInstance() { if (instance == null) { instance = new ClassService(); } if (classDao == null) { classDao = new ClassDao(); } if (userClassDao == null) userClassDao = new UserClassDao(); return instance; }
public static BodyStu createForm() { if (instance == null || instance.IsDisposed) { instance = new BodyStu(); if (userService == null) userService = UserService.getInstance(); if (classService == null) classService = ClassService.getInstance(); if (strWheres == null) strWheres = new Dictionary<string, string>(); } return instance; }
public AddClass() { InitializeComponent(); if (classService == null) classService = new ClassService(); }