Exemple #1
0
        public static AddClass getInstance()
        {
            instance = new AddClass();

            if (classService == null)
                classService = new ClassService();

            return instance;
        }
Exemple #2
0
 public static ClassService getInstance()
 {
     if (instance == null)
     {
         instance = new ClassService();
     }
     if (classDao == null)
     {
         classDao = new ClassDao();
     }
     if (userClassDao == null)
         userClassDao = new UserClassDao();
     return instance;
 }
Exemple #3
0
        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;
        }
Exemple #4
0
 public AddClass()
 {
     InitializeComponent();
     if (classService == null)
         classService = new ClassService();
 }