Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            KayitForm kayitForm = new KayitForm();

            KayitForm.butonisim = "Guncelle";

            KullaniciIslemleri kullaniciIslemleri = new KullaniciIslemleri();

            if
            (
                MessageBox.Show
                (
                    "Back to Login Page",
                    "Back to Login Page Dialog",
                    MessageBoxButtons.YesNo,
                    MessageBoxIcon.Warning,
                    MessageBoxDefaultButton.Button2 // hit Enter == No !
                )
                == DialogResult.Yes
            )
            {
                string guncelleKullaniciAdi = KullaniciGirisForm.kullaniciAdiSaklama;
                this.Hide();
                kullaniciIslemleri.Guncelle(guncelleKullaniciAdi);
                kayitForm.Show();
            }
        }
Beispiel #2
0
        private void lblYeniKullanici_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            KayitForm kayitform = new KayitForm();

            KayitForm.butonisim = "Kayıt Ol";
            this.Hide();
            kayitform.Show();
        }