Exemple #1
0
        private void btnGeri_Click(object sender, EventArgs e)
        {
            GenelMenu anaMenuForm = new GenelMenu();

            anaMenuForm.Show();
            this.Hide();
        }
        Ilac _ilac_ = new Ilac(); //metot klasöründeki ilaç sınıfı içerisinden veri iletişimi
        private void button3_Click_1(object sender, EventArgs e)
        {
            GenelMenu anaMenuForm = new GenelMenu();

            anaMenuForm.Show();
            this.Hide();
        }
Exemple #3
0
        private void button6_Click(object sender, EventArgs e)
        {
            GenelMenu anaMenuForm = new GenelMenu();

            this.Close();
            anaMenuForm.Show();
            this.Close();
        }
        public void GirisYap(string ad, string parola)
        {
            // baglan();
            SqlCommand command = new SqlCommand("Select * From Personel where Tc='" + ad + "' and Sifre='" + parola + "'", baglanti);

            baglanti.Open();
            SqlDataReader reader = command.ExecuteReader();

            if (reader.Read())
            {
                GenelMenu menuGenel = new GenelMenu();

                menuGenel.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Hatalı Giriş!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            baglanti.Close();
            command.Dispose();
        }