private void CalisanDetay_FormClosed(object sender, FormClosedEventArgs e)
        {
            Maas           frm  = (Maas)Application.OpenForms["Maas"];
            CalisanProfili frm1 = (CalisanProfili)Application.OpenForms["CalisanProfili"];

            frm.Close();
            frm1.Show();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("Kimlik No Giriniz");
            }
            else if (textBox2.Text == "")
            {
                MessageBox.Show("Şifre Giriniz");
            }
            else
            {
                if (con.State == ConnectionState.Closed)
                {
                    con.Open();
                }
                cmd = new SqlCommand("Select *From Kullanicilar where KullaniciAdi = @id and Sifre = @Sifre", con);

                cmd.Parameters.AddWithValue("@id", textBox1.Text);
                cmd.Parameters.AddWithValue("@Sifre", textBox2.Text);
                dt = cmd.ExecuteReader();

                if (dt.HasRows)
                {
                    while (dt.Read())
                    {
                        if (dt["turu"].ToString() == "m")
                        {
                            frm = new MusteriProfil(int.Parse(textBox1.Text));
                            Id  = int.Parse(textBox1.Text);
                            frm.Show();
                        }
                        else if (dt["turu"].ToString() == "c")
                        {
                            cs = new CalisanProfili(int.Parse(textBox1.Text));
                            Id = int.Parse(textBox1.Text);
                            cs.Show();
                        }
                        else
                        {
                            cs = new CalisanProfili(int.Parse(textBox1.Text));
                            cs.yetkili();
                            Id = int.Parse(textBox1.Text);
                            cs.Show();
                        }

                        this.Hide();
                    }
                }
                else if (!dt.HasRows)
                {
                    MessageBox.Show("Hatalı Giriş Yaptınız");
                }

                dt.Close();
            }
        }
Ejemplo n.º 3
0
        private void Anlasmaekle_FormClosed(object sender, FormClosedEventArgs e)
        {
            CalisanProfili F = (CalisanProfili)Application.OpenForms["CalisanProfili"];

            F.Show();
        }
Ejemplo n.º 4
0
        private void Sorun_FormClosed(object sender, FormClosedEventArgs e)
        {
            CalisanProfili f1 = (CalisanProfili)Application.OpenForms["CalisanProfili"];

            f1.Show();
        }
Ejemplo n.º 5
0
        private void YeniCalisan_FormClosed(object sender, FormClosedEventArgs e)
        {
            CalisanProfili frm = (CalisanProfili)Application.OpenForms["CalisanProfili"];

            frm.Show();
        }
Ejemplo n.º 6
0
        private void Sirketler_FormClosed(object sender, FormClosedEventArgs e)
        {
            CalisanProfili cp = (CalisanProfili)Application.OpenForms["CalisanProfili"];

            cp.Show();
        }
Ejemplo n.º 7
0
        private void ToplantiEkle_FormClosed(object sender, FormClosedEventArgs e)
        {
            CalisanProfili cd = (CalisanProfili)Application.OpenForms["CalisanProfili"];

            cd.Show();
        }