Exemple #1
0
 private void button6_Click(object sender, EventArgs e)
 {
     FormPasswordChange form = new FormPasswordChange();
     form.nereden1 = "Yeni Çalışan Ekle";
     form.yöneticiveyaçalışan = "Yönetici";
     if ((textBox1.Text == "") || (textBox2.Text == "") || (textBox3.Text == "") || (textBox4.Text == "") || (comboBox2.Text == "") || (textBox5.Text == "") || (textBox6.Text == "") || (textBox7.Text == "") || (comboBox1.Text == "") || (comboBox3.Text == "") || (textBox12.Text == "") || (textBox9.Text=="")|| (textBox13.Text == ""))
     {
         MessageBox.Show("Lütfen tüm alanları doldurunuz.");
     }
     else
     {
         form.Show();
     }
 }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormPasswordChange form = new FormPasswordChange();

            form.nereden1 = "Çalışanlar Kendilerini Değiştirsin";
            if (yöneticiyadaçalışan == "Yönetici")
            {
                DialogResult result = MessageBox.Show("Lütfen bu kısmı sadece şifrenizi unuttuysanız kullanınız. Devam etmek istiyor musunuz?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (result == DialogResult.Yes)
                {
                    form.yöneticiveyaçalışan = "Yönetici";
                    form.Show();
                }
            }
            else if (yöneticiyadaçalışan == "Çalışan")
            {
                DialogResult result = MessageBox.Show("Lütfen bu kısmı sadece şifrenizi unuttuysanız kullanınız. Devam etmek istiyor musunuz?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (result == DialogResult.Yes)
                {
                    form.yöneticiveyaçalışan = "Çalışan";
                    form.Show();
                }
            }
        }