private void ModifyPigeon_Click(object sender, RoutedEventArgs e) { Pig p = new Pig(); FR_Fancier.Navigate(p); DataGrid.Height = this.Height - 250; }
private void AddFancier_Click(object sender, RoutedEventArgs e) { targetButton = 1; FanDetails f = new FanDetails(this); FR_Fancier.Navigate(f); }
private void ModifyResult_Click(object sender, RoutedEventArgs e) { FlgRDetails flgR = new FlgRDetails(); FR_Fancier.Navigate(flgR); DataGrid.Height = this.Height - 250; }
private void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { targetButton = 3; var selectedItem = DataGrid.SelectedItem; if (selectedItem != null) { string IdFancier = (DataGrid.SelectedItem as Fancier).IdFancier; int IdSection = (DataGrid.SelectedItem as Fancier).IdSection; int IdDovecote = (DataGrid.SelectedItem as Fancier).IdDovecote; string FirstName = (DataGrid.SelectedItem as Fancier).FirstName; string LastName = (DataGrid.SelectedItem as Fancier).LastName; string Adress = (DataGrid.SelectedItem as Fancier).Adress; string City = (DataGrid.SelectedItem as Fancier).City; string Mail = (DataGrid.SelectedItem as Fancier).Mail; string Telephone_Number = (DataGrid.SelectedItem as Fancier).Telephone_Number; fancier = new Fancier(IdFancier, IdSection, IdDovecote, FirstName, LastName, Adress, City, Mail, Telephone_Number); FanDetails f = new FanDetails(); FR_Fancier.Navigate(f); } }