private void button1_Click(object sender, EventArgs e) { YonetimPaneli yf = new YonetimPaneli(); Menu m = new Menu(); Kullanicilar kullanici = new Kullanicilar(tbxUser.Text, tbxPassword.Text); KargoDBDal islemler = new KargoDBDal(); if (islemler.KullaniciGirisi(kullanici, yf, lblKullaniciMesaj) == true) { m.Close(); this.Hide(); } }