Пример #1
0
 public static connection GetInstance()
 {
     if (dbconnect == null)
     {
         dbconnect = new connection();
     }
     return(dbconnect);
 }
Пример #2
0
        public cariDokterView()
        {
            InitializeComponent();

            conn    = connection.GetInstance();
            userDAO = new userDAO(conn.GetConnection());

            filltolst();
        }
        public hewanSakitView()
        {
            InitializeComponent();

            conn   = connection.GetInstance();
            petDAO = new petDAO(conn.GetConnection());

            filldg();
        }