示例#1
0
        private void AddFancier_Click(object sender, RoutedEventArgs e)
        {
            targetButton = 1;
            FanDetails f = new FanDetails(this);

            FR_Fancier.Navigate(f);
        }
示例#2
0
        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);
            }
        }