private void BtnSil_Click(object sender, RoutedEventArgs e)
        {
            if (SelectedPersonel == null)
            {
                MessageBox.Show("Personel seçiniz..");
                return;
            }

            PersonelServiceClient con = new PersonelServiceClient();

            con.Sil(SelectedPersonel);
        }
        private void BtnAra_Click(object sender, RoutedEventArgs e)
        {
            Employee emp = new Employee();

            emp.FirstName = txtAd.Text;
            emp.LastName  = txtSoyAd.Text;

            if (emp != null)
            {
                PersonelServiceClient con = new PersonelServiceClient();
                PersonelList = con.Ara(emp).ToList();
            }
        }
        private void BtnEkle_Click(object sender, RoutedEventArgs e)
        {
            Employee emp = new Employee();

            emp.FirstName = txtAd.Text;
            emp.LastName  = txtSoyAd.Text;
            emp.HomePhone = txtTelefon.Text;
            emp.Address   = txtAdres.Text;
            emp.City      = txtSehir.Text;
            emp.Country   = txtUlke.Text;
            emp.BirthDate = dpDogumTarihi.SelectedDate;

            if (emp != null)
            {
                PersonelServiceClient con = new PersonelServiceClient();
                con.Ekle(emp);
            }
        }
        private void BtnGuncelle_Click(object sender, RoutedEventArgs e)
        {
            if (SelectedPersonel == null)
            {
                MessageBox.Show("Personel seçiniz..");
                return;
            }

            Employee emp = new Employee();

            emp.FirstName = txtAd.Text;
            emp.LastName  = txtSoyAd.Text;
            emp.HomePhone = txtTelefon.Text;
            emp.Address   = txtAdres.Text;
            emp.City      = txtSehir.Text;
            emp.Country   = txtUlke.Text;
            emp.BirthDate = dpDogumTarihi.SelectedDate;

            PersonelServiceClient con = new PersonelServiceClient();

            con.Guncelle(emp);
        }
        private void LoadGrid()
        {
            PersonelServiceClient con = new PersonelServiceClient();

            PersonelList = con.getPersonelList().ToList();
        }