private void tileItem1_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { try { PersonelOlusturma persolustur = new PersonelOlusturma(); persolustur.Show(); } catch (Exception ex) { HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1); } }
private void tümBilgileriGösterToolStripMenuItem_Click(object sender, EventArgs e) { try { string kullaniciAdi = metroGrid1.SelectedCells[3].Value.ToString(); PersonelOlusturma bilgileriGoster = new PersonelOlusturma(kullaniciAdi, 1); bilgileriGoster.Show(); } catch (Exception ex) { HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1); } }
private void düzenleToolStripMenuItem_Click(object sender, EventArgs e) { try { if (metroGrid1.SelectedCells.Count > 0) { string kullaniciAdi = metroGrid1.SelectedCells[3].Value.ToString(); PersonelOlusturma bilgileriGoster = new PersonelOlusturma(kullaniciAdi, 0); bilgileriGoster.Show(); } else { HotelWarningForm.Show(Localization.duzenlenecekPersonelSec, Localization.Tamam, 1); } } catch (Exception ex) { HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1); } }