private void btnRandevu_Click(object sender, EventArgs e) { this.pbSeciliSayfa.Location = new Point( 176, this.btnRandevu.Location.Y); FormRandevuIslemleri frm = new FormRandevuIslemleri(); FormAcikmi(frm); }
private void btnRandevu_Click(object sender, EventArgs e) { if (Genel.PersonelUnvan.Contains("Sekreter") || Genel.PersonelUnvan.Contains("Danışman") || Genel.PersonelUnvan.Contains("Yönetici")) { this.pbSeciliSayfa.Location = new Point( 176, this.btnRandevu.Location.Y); var frm = new FormRandevuIslemleri(); FormAcikmi(frm); } else { MessageBox.Show("Bu Sayfayı Görüntülemek İçin Yetkiniz Bulunmamaktadır!", "Dikkat!", MessageBoxButtons.OK, MessageBoxIcon.Information); } }