예제 #1
0
        ///////////////////Fungsi/////////////////////////////////////////////////////////////
        public Form1(String id_user)
        {
            id_user_masuk = id_user;
            String alamat = "Server=den1.mysql1.gear.host;Database=stegomendb;Uid=stegomendb;Pwd=stegomen!;";

            koneksi = new MySqlConnection(alamat);
            koneksi.Open();
            koneksi.Close();
            Console.WriteLine("koneksi sukses");
            dbHandler = new kelasDatabase(koneksi);
            library   = new libraryFungsi();
            InitializeComponent();
        }
예제 #2
0
 public FormLogin()
 {
     InitializeComponent();
     koneksi   = new MySqlConnection("Server=den1.mysql1.gear.host;Database=stegomendb;Uid=stegomendb;Pwd=stegomen!;");
     dbHandler = new kelasDatabase(koneksi);
 }