示例#1
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            AnaForm a = (AnaForm)Application.OpenForms["AnaForm"];

            a.acilisDurum = false;
            a.acilisKontrolEt();
            this.Close();
        }
示例#2
0
 private void simpleButton15_Click(object sender, EventArgs e)
 {
     if (kullaniciAd == textEdit1.Text && kullaniciSifre == textEdit2.Text)
     {
         AnaForm a = (AnaForm)Application.OpenForms["AnaForm"];
         a.acilisDurum = true;
         a.acilisKontrolEt();
         this.Close();
     }
     else
     {
         MesajKutusu m = new MesajKutusu();
         m.labelControl1.Text   = "Kullanıcı adı veya parola hatalı!";
         m.pictureEdit1.Visible = true;
         m.ShowDialog();
     }
 }