///////////////////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(); }
public FormLogin() { InitializeComponent(); koneksi = new MySqlConnection("Server=den1.mysql1.gear.host;Database=stegomendb;Uid=stegomendb;Pwd=stegomen!;"); dbHandler = new kelasDatabase(koneksi); }