private void BackgroundWorker1_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { IslemVarmi = false; pictureBox2.Visible = false; AktifKullanici Aktif = new AktifKullanici(); AnaSayfa anasayfa = new AnaSayfa(); string txtMail = textboxMail.Text, txtSifre = textboxPassword.Text; int KullaniciKontrol = DataBaglan.MailKullaniciAra(txtMail, txtSifre); if (KullaniciKontrol == 0) { labelMailHata.Visible = true; } else { if (KullaniciKontrol == 1) { if (chckBeniHatirla.Checked == true) { Properties.Settings.Default.KullaniciAdi = textboxMail.Text; Properties.Settings.Default.Sifre = textboxPassword.Text; Properties.Settings.Default.Save(); } else { Properties.Settings.Default.KullaniciAdi = ""; Properties.Settings.Default.Sifre = ""; Properties.Settings.Default.Save(); } Aktif.KullaniciSec(txtMail); anasayfa.Show(); this.Hide(); } else { labelSifreHata.Visible = true; } } }
private void FavKatsKaydet_Click(object sender, EventArgs e) { panel4.Visible = true; string favkats = ""; for (int i = 0; i < 3; i++) { favkats += dataGridView1.SelectedRows[i].Index + 1; if (i != 2) { favkats += ","; } } Baglanti.FavSec(favkats, AktifKullanici.kullaniciMail); AktifKullanici aktif = new AktifKullanici(); aktif.favDegistir(favkats); panel3.Visible = false; Baglanti.OnerilenleriBul(); IcerikleriYerlestir(); panel4.Visible = false; }