public void LinqLoginKontrol() { int id = linq.LoginKontrol(txtKullanici.Text, txtSifre.Text); bool kontrol = EmailKontrol(txtKullanici.Text); if (id > 0) { MessageBox.Show("Giriş Başarılı"); this.Hide(); AnaEkran anaEkran = new AnaEkran(txtKullanici.Text, id); anaEkran.ShowDialog(); this.Close(); } else if (!kontrol) { MessageBox.Show("Email düzgün biçimde değil"); } else if (id == -2) { MessageBox.Show("Böyle Bir Kullanici Şu Anda Online. Çıkış Yapmadan Giremezsin"); } else { MessageBox.Show("Giriş Başarısız"); } }