private void buttonÇalışan_Click(object sender, EventArgs e) { if (yöneticiyadaçalışan == "Yönetici") { veriGösterYönetici(); if (labelsifreyönetici.Text == textBoxŞifre.Text) { FormPersonnel form = new FormPersonnel(); form.Show(); this.Hide(); } } if (yöneticiyadaçalışan == "Çalışan") { veriGösterÇalışan(); if (labelŞifreÇalışan.Text == textBoxŞifre.Text) { FormPerformanceGrades form = new FormPerformanceGrades(); form.nereden = "Çalışan"; form.çalışanID = textBoxID.Text; form.Show(); this.Hide(); } } }
private void button2_Click(object sender, EventArgs e) { FormPersonnel form = new FormPersonnel(); form.Show(); this.Hide(); }