private void btnAdd_Click(object sender, EventArgs e)
        {
            AddPersonel frm = new AddPersonel();

            frm.ShowDialog();

            dataGridViewPersonel.DataSource = null;
            dataGridViewPersonel.DataSource = HotelRepository.personels;
        }
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            if (dataGridViewPersonel.SelectedRows.Count == 0)
            {
                MessageBox.Show("Editlenecek satırı Seçiniz");
                return;
            }

            Personel p = (Personel)dataGridViewPersonel.SelectedRows[0].DataBoundItem;

            AddPersonel frm = new AddPersonel(p);

            frm.ShowDialog();

            dataGridViewPersonel.DataSource = null;
            dataGridViewPersonel.DataSource = HotelRepository.personels;
        }