public static DesignPatternDB ConnectDB()
 {
     if (db == null)
     {
         db = new DesignPatternDB();
     }
     return(db);
 }
Пример #2
0
 public ViewModel()
 {
     entity         = DesignPatternDB.ConnectDB();
     ob_BindingList = new BindingSource();
 }
 public AbstrackViewModel()
 {
     db = DesignPatternDB.ConnectDB();
     objectBindingList = new BindingSource();
     LoadObjectSet();
 }